Hibernate collection mapping
来源:互联网 发布:选择lua不选择python 编辑:程序博客网 时间:2024/05/16 10:53
name
: the collection property name
table
(optional - defaults to property name): the name of the collection table. It is not used for one-to-many associations.
schema
(optional): the name of a table schema to override the schema declared on the root element
lazy
(optional - defaults to true
): disables lazy fetching and specifies that the association is always eagerly fetched. It can also be used to enable "extra-lazy" fetching where most operations do not initialize the collection. This is suitable for large collections.
inverse
(optional - defaults to false
): marks this collection as the "inverse" end of a bidirectional association.
cascade
(optional - defaults to none
): enables operations to cascade to child entities.
sort
(optional): specifies a sorted collection with natural
sort order or a given comparator class.
order-by
(optional, JDK1.4 only): specifies a table column or columns that define the iteration order of the Map
, Set
or bag, together with an optional asc
or desc
.
where
(optional): specifies an arbitrary SQL WHERE
condition that is used when retrieving or removing the collection. This is useful if the collection needs to contain only a subset of the available data.
fetch
(optional, defaults to select
): chooses between outer-join fetching, fetching by sequential select, and fetching by sequential subselect.
batch-size
(optional, defaults to 1
): specifies a "batch size" for lazily fetching instances of this collection.
access
(optional - defaults to property
): the strategy Hibernate uses for accessing the collection property value.
optimistic-lock
(optional - defaults to true
): specifies that changes to the state of the collection results in increments of the owning entity's version. For one-to-many associations you may want to disable this setting.
mutable
(optional - defaults to true
): a value of false
specifies that the elements of the collection never change. This allows for minor performance optimization in some cases.
unique
(optional): enables the DDL generation of a unique constraint for the foreign-key column. This makes the association multiplicity effectively one-to-many.
- Hibernate collection mapping
- org.hibernate.DuplicateMappingException: Duplicate collection role mapping
- 异常------》hibernate异常---》Duplicate collection role mapping(重复映射)
- hibernate-mapping
- Hibernate mapping
- Caused by: org.hibernate.MappingException: collection foreign key mapping has wrong number of column
- org.hibernate.MappingException: Could not determine type for: java.util.Collection, for columns: [org.hibernate.mapping.Column(l
- hibernate-collection
- hibernate-collection
- hibernate-collection
- 映射集合(Mapping a Collection)
- Duplicate collection role mapping 异常
- 自己创建 hibernate mapping
- Hibernate Mapping笔记
- 3-Hibernate mapping file
- HIBERNATE VIEW MAPPING
- hibernate Annotation extend mapping
- hibernate model mapping exception
- 更换图片和铃声
- 第2章 Sprites(精灵)的乐趣
- 【转】 基于朴素贝叶斯分类器的文本分类算法(上)
- 高级 DAO 编程
- 【转】基于朴素贝叶斯分类器的文本分类算法(下)
- Hibernate collection mapping
- S60应用程序框架
- BIST测试技术,内建自测(Built-inSelfTest)
- Atomthreads: Open Source RTOS
- 一个比较优秀的静态函数的使用(类似于单子模式)
- 【学习散记9之---并行查询处理】
- 传智播客--Spring中的事务管理,hibernate整合,struts整合(佟刚)
- libnet 库源代码分析
- Lock-Free Algorithms