Chapter 4 Generating Hibernate Persistent Objects and JSF Pages
Most many-to-many associations have association-specific attributes. In general, these attributes should be defined in an association class, but since PowerDesigner does not support association classes for Hibernate, you will need to transform the association class to a normal class.
The join table that will support a many-to-many association is automatically generated when you generate a PDM from the OOM.
To manually define the mapping:
Copyright (C) 2005. Sybase Inc. All rights reserved. |
![]() |