Chapter 9 Generating Persistent Objects for Java and JSF Pages


Collection management options

The following options are available:

Field Description
Sort Specifies a sorted collection with natural sort order, or a given comparator class.

Hibernate Tag: sort
Order by Specifies a table column (or columns) that define the iteration order of the Set or bag, together with an optional asc or desc.

Hibernate Tag: order-by
Access Specifies the strategy Hibernate should use for accessing the property value.

Hibernate Tag: access
Cascade Specifies which operations should be cascaded from the parent object to the associated object.

Hibernate Tag: cascade
Collection type Specifies a name that indicates the Hibernate type.

Hibernate Tag: type
Batch size Specifies the batch load size.

Hibernate Tag: batch-size
Not found Specifies how foreign keys that reference missing rows will be handled: ignore will treat a missing row as a null association.

Hibernate Tag: not-found
Inverse collection Specifies that the role is the inverse relation of the opposite role.

Hibernate Tag: inverse

 


Copyright (C) 2007. Sybase Inc. All rights reserved.