|
Hibernate example source code file (Person.hbm.xml)
The Hibernate Person.hbm.xml source code<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping package="org.hibernate.test.propertyref.inheritence.discrim"> <class name="Person" discriminator-value="null" table="D_SBCLS_PROPREF_PERS"> <id name="id"> <generator class="hilo"/> </id> <discriminator formula="customerId"/> <property name="name" length="100"/> <property name="personId" length="8" unique="true"/> <subclass name="Customer" discriminator-value="not null"> <property name="customerId" length="8" unique="true"/> </subclass> </class> <class name="Account" table="D_SBCLS_PROPREF_ACCT"> <id name="accountId" length="32"> <generator class="uuid.hex"/> </id> <many-to-one name="person" column="personId" unique="true" property-ref="personId"/> <many-to-one name="customer" column="customerPersonId" unique="true" property-ref="personId"/> <property name="type" column="`type`" not-null="true"/> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Person.hbm.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.