<hibernate-mapping>
<class name="com.bjsxt.hibernate.CollectionMapping" table="t_collection_mapping">
<id name="id">
<generator class="native"/>
</id>
<property name="name"/>
<set name="setValues" table="t_set_values">
<key column="set_id"/>
<element type="string" column="set_value"/>
</set>
<list name="listValues" table="t_list_values">
<key column="list_id"/>
<list-index column="list_index"/>
<element type="string" column="list_value"/>
</list>
<array name="arrayValues" table="t_array_values">
<key column="array_id"/>
<list-index column="array_index"/>
<element type="string" column="array_value"/>
</array>
<map name="mapValues" table="t_map_values">
<key column="map_id"/>
<map-key type="string" column="map_key"/>
<element type="string" column="map_value"/>
</map>
</class>
</hibernate-mapping>
分享到:
相关推荐
student与Score的Map集合关系 student与class的多对一 一对多映射
hibernate集合映射inverse和cascade详解.txt
NULL 博文链接:https://wintys.iteye.com/blog/426022
介绍的很详细,个人觉得不错!!!
hibernate集合的映射 集合的映射 set list array map
NULL 博文链接:https://lijunabc.iteye.com/blog/443381
Hibernate映射集合属性List,用于映射集合属性 List Hibernate 自动生成表 不需sql
NULL 博文链接:https://lijunabc.iteye.com/blog/443278
Hibernate常见集合映射(Set,List_Array,Map,Bag)
JAVA培训-HIBERNATE的集合映射.doc
Hibernate关系映射 Hibernate主键策略与属性 Hibernate集合映射
NULL 博文链接:https://lijunabc.iteye.com/blog/443353
hibernate中的集合映射,各种集合类型的使用方法及适用场景
NULL 博文链接:https://lijunabc.iteye.com/blog/443305
第12章 基于annotation注解技术的ssh 2整合开发 12.1 初识annotation522 12.2 亲身体验annotation的威力524 ...12.4.12 hibernate集合映射的annotation注解实现552 12.5 基于annotation的ssh 2整合开发554 12.6 小结563
2,建立表的hibernate支持,生成tb_user类和对应的配置文件 3,修改配置文件使之和相应的类对应, 4,修改tb_user类,创建一个set类型的字段emailes,生成它的set和get方法 5,写测试类,对以上内容进行测试。 二、...