~raginggoblin/infolog/infolog

« back to all changes in this revision

Viewing changes to InfologServer/lib/hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/orphan/User.hbm.xml

  • Committer: Raging Goblin
  • Date: 2013-11-16 16:51:32 UTC
  • Revision ID: raging_goblin-20131116165132-weujnptzc88uy4ah
Mavenized the project, now using shared project InfologSync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
 
3
 
<!DOCTYPE hibernate-mapping PUBLIC
4
 
        '-//Hibernate/Hibernate Mapping DTD 3.0//EN'
5
 
        'http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd'>
6
 
 
7
 
<hibernate-mapping package="org.hibernate.test.orphan" >
8
 
 
9
 
    <class name="User" table="t_user">
10
 
 
11
 
        <id name="id" type="integer" column="id">
12
 
            <generator class="native" />
13
 
        </id>
14
 
 
15
 
        <property name="userid">
16
 
            <column name="userid" length="32" not-null="true"/>
17
 
        </property>
18
 
 
19
 
        <set name="mail" table="mail" cascade="all, delete-orphan" inverse="true" lazy="false">
20
 
            <key column="userid" property-ref="userid" not-null="false"/>
21
 
            <one-to-many class="Mail"/>
22
 
        </set>
23
 
 
24
 
    </class>
25
 
 
26
 
</hibernate-mapping>