So here is an example of my problem (really bad example)
"Person.hbm.xml"
Code:
<composite-id name="personPK" class="blah.blah.PersonPK">
<key-property name="fullName" column="FULL_NAME_COLUMN" type="string" />
<key-property name="address" column="ADDRESS_COLUMN" type="string" />
</composite-id>
<property name="family" column="FAMILY" type="string" />
<one-to-one name="Address" foreign-key="ADDRESS_COLUMN" class="blah.blah.Address"/>
"Address.hbm.xml"Code:
<id name="id" column="ADDRESS_ID_COLUMN" type="string" />
<property name="street" column="STREET" type="string"/>
Everything works well, except the
<one-to-one> at the end of the
Person.hbm.xml. I've done it before with just a regular id, but the composite-id is toying with me... Got any advice?
Note: I wanted to do a join on the table, but I wasn't able to get past that part either, so I figured I would just map the whole table/object in Address.hbm.xml