Chapter 11 Generating .NET 2.0 Persistent Objects and Windows Applications


Defining Association Mappings

NHibernate supports one-one, one-to-many/many-to-one, and many-to-many association mappings. The mapping modeling is same with standard O/R Mapping Modeling. However, NHibernate provides special options to define its association mappings, which will be saved into <Class>.hbm.xml mapping file. PowerDesigner allows you to define standard association attributes like Container Type class, role navigability, array size and specific extended attributes for NHibernate association mappings.

Steps To define the NHibernate association mapping options:

  1. Open the Association property sheet and click the NHibernate Collection tab.
  2. Define the collection management options (see Defining NHibernate Collection options).
  3. Select the NHibernate Persistence tab, and define the persistence options (see Defining NHibernate Persistence options).

 


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