| 1 |
<?xml version="1.0"?> |
| 2 |
<!DOCTYPE hibernate-mapping PUBLIC |
| 3 |
"-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
| 4 |
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
| 5 |
|
| 6 |
<hibernate-mapping> |
| 7 |
|
| 8 |
<class name="net.sf.ehcache.hibernate.domain.Account" table="ACCOUNT" lazy="false"> |
| 9 |
<id name="id" column="ACCOUNT_ID"> |
| 10 |
<generator class="native"/> |
| 11 |
</id> |
| 12 |
|
| 13 |
<many-to-one name="person" class="net.sf.ehcache.hibernate.domain.Person" cascade="save-update,lock" |
| 14 |
column="person_id" |
| 15 |
unique="true" |
| 16 |
not-null="true"/> |
| 17 |
</class> |
| 18 |
|
| 19 |
</hibernate-mapping> |