Hibernate1

来源:互联网 发布:数组的默认长度是多少 编辑:程序博客网 时间:2024/06/08 15:44


主键生成器:


increment : long,short,int 数据列生成自动增长的主键。

identity :  自动增长主键(SQL Server , MySQL)

sequence : 

uuid : 



映射集合属性:

list - List

set - Set

map - Map

array - 数组

bag - 无序集合

idbag - 无序集合,增加逻辑次序


class A

{

List list_b=new ArrayList();

}


<class name="A">

<list name="list_b" table="table_b">

<key column="a_id" not-null="true"/>

<element type="string" column="b_name"/> //属性元素

</>

</class>