2
<!DOCTYPE hibernate-mapping PUBLIC
3
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
4
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
8
Demonstrates use of an association "filtered" using a formula
9
mapping in the foreign key.
13
<hibernate-mapping package="org.hibernate.test.formulajoin">
15
<class name="Master" table="t_masters">
18
<generator class="increment"/>
26
<many-to-one name="detail"
27
property-ref="currentMaster"
36
<class name="Detail" table="t_details">
39
<generator class="hilo"/>
42
<property name="details"
47
<property name="version" update="false">
48
<column name="version"
50
unique-key="masterVersion"/>
53
<properties name="currentMaster">
54
<many-to-one name="master">
55
<column name="cur_master"
56
unique-key="masterVersion"
59
<property name="currentVersion"
b'\\ No newline at end of file'