~ubuntu-branches/ubuntu/wily/libhibernate3-java/wily-proposed

« back to all changes in this revision

Viewing changes to test/org/hibernate/test/propertyref/inheritence/union/Person.hbm.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-10-14 14:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20071014144334-eamc8i0q10gs1aro
Tags: upstream-3.2.5
ImportĀ upstreamĀ versionĀ 3.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 package="org.hibernate.test.propertyref.inheritence.union">
 
7
 
 
8
        <class name="Person" table="U_SBCLS_PROPREF_PERS">
 
9
                <id name="id">
 
10
                        <generator class="hilo"/>
 
11
                </id>
 
12
                <property name="name" length="100"/>
 
13
                <property name="personId" length="8" unique="true"/>
 
14
                                
 
15
                <union-subclass name="Customer" table="U_SBCLS_PROPREF_CUST">
 
16
            <property name="customerId" length="8" unique="true"/>
 
17
                </union-subclass>
 
18
        </class>
 
19
        
 
20
        <class name="Account" table="U_SBCLS_PROPREF_ACCT">
 
21
                <id name="accountId" length="32">
 
22
                        <generator class="uuid.hex"/>
 
23
                </id>
 
24
                <many-to-one name="person" column="personId" unique="true" property-ref="personId"/>
 
25
                <many-to-one name="customer" column="customerPersonId" unique="true" property-ref="personId"/>
 
26
                <property name="type" not-null="true"/>
 
27
        </class>
 
28
 
 
29
</hibernate-mapping>
 
 
b'\\ No newline at end of file'