Chapter 11 Generating .NET 2.0 Persistent Objects and Windows Applications


Defining NHibernate Collection options

The following options are available:

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

NHibernate 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.

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

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

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

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

NHibernate 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.

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

NHibernate Tag: inverse
Mapping type Specifies the collection mapping type

NHibernate Tag: Set, Array, Map, or List.

 


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