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.

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