|
Hibernate example source code file (ABCProxy.hbm.xml)
The Hibernate ABCProxy.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 default-lazy="false"> <class name="org.hibernate.test.legacy.A" discriminator-value="0" lazy="true" table="AP"> <id name="id" column="identifier_column" unsaved-value = "null"> <generator class="increment"/> </id> <discriminator column="clazz_discriminata" type="integer" force="true" not-null="false"/> <property name="name"/> <many-to-one name="forward" class="org.hibernate.test.legacy.E" cascade="save-update" /> <subclass name="org.hibernate.test.legacy.B" discriminator-value="null" lazy="true"> <property name="count" column="count_"/> <map name="map" table="`map`"> <key column="BID"/> <index column="MAPKEY" type="string"/> <element column="MAPVAL" type="int"/> </map> <subclass name="org.hibernate.test.legacy.C1" discriminator-value="1" lazy="true"> <property name="address" column="c1"/> <one-to-one name="d"/> <many-to-one name="c2" column="c" class="org.hibernate.test.legacy.C2"/> <bag name="c2s" inverse="true" where="identifier_column is not null"> <key column="c"/> <one-to-many class="org.hibernate.test.legacy.C2"/> </bag> </subclass> <subclass name="org.hibernate.test.legacy.C2" discriminator-value="2" lazy="true"> <property name="address" column="c2"/> <many-to-one name="c1" column="c" class="org.hibernate.test.legacy.C1"/> <bag name="c1s" inverse="true" > <key column="c"/> <one-to-many class="org.hibernate.test.legacy.C1"/> </bag> </subclass> </subclass> </class> <class name="org.hibernate.test.legacy.D" discriminator-value="0" lazy="true" table="DP"> <id name = "id" unsaved-value = "null"> <generator class="assigned"/> </id> <property name="amount"/> </class> <class name="org.hibernate.test.legacy.E" discriminator-value="0" lazy="true" table="EP"> <id name = "id" unsaved-value = "null"> <generator class="increment"/> </id> <property name="amount"/> <one-to-one name="reverse" class="org.hibernate.test.legacy.A" property-ref="forward" cascade="save-update"/> <set name="as" lazy="true"> <key column="e"/> <one-to-many class="org.hibernate.test.legacy.A"/> </set> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate ABCProxy.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.