Joined: Sat Apr 08, 2006 1:07 pm Posts: 3
|
Hello,
I follow 7.4.1 example in online documentation :
<class name="Person">
<id name="id" column="personId">
<generator class="native"/>
</id>
<many-to-one name="address"
column="addressId"
not-null="true"/>
</class>
<class name="Address">
<id name="id" column="addressId">
<generator class="native"/>
</id>
<set name="people" inverse="true">
<key column="addressId"/>
<one-to-many class="Person"/>
</set>
</class>
How is multiplicity handled in POJO's ?
Can i have in Person : Set<Adress> and in Adress : Set<Person> ???
Thans for your help.
|
|