From: Gavin_King/Cirrus%<CI...@ci...> - 2002-04-16 13:37:44
|
The column attribute in the following two lines should match: <many-to-one name="Client" column="clientId" class="com.mticket.Client"/> <key column="clientId"/> The column attribute in the second line refers to the column of the _referenced_ table, not the referencing table. Have a close look at cirrus.hibernate.test.Master, cirrus.hibernate.test.Detail and master_detail_map.xml for an example of how to use bidirectional associations. |