Joined: Sun Apr 11, 2004 5:05 am Posts: 2
|
Hi,
I've tried this for the last couple of days and read loads of posts to that:
I want to store countries. Each country can have 1 or more regions attached to it.
These are the mappings (generated with XDooclet):
Country.hbm.xml
[code] <hibernate-mapping> <class name="org.iaeste.at.is.domain.Country" table="Country" proxy="org.iaeste.at.is.domain.Country" dynamic-update="false" dynamic-insert="false" >
<id name="id" column="id" type="long" unsaved-value="0" > <generator class="native" /> </id>
<property name="code" type="string" update="true" insert="true"
|
|