|
Hibernate example source code file (XY.hbm.xml)
The Hibernate XY.hbm.xml source code<?xml version="1.0" encoding="UTF-8"?> <!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.X"> <id name="id" unsaved-value="0" column="xid"> <generator class="foreign"> <param name="property">y </generator> </id> <one-to-one name="y" constrained="true" cascade="all"/> <bag name="xxs" inverse="true" cascade="all"> <key column="x"/> <one-to-many class="org.hibernate.test.legacy.X$XX"/> </bag> </class> <class name="org.hibernate.test.legacy.Y"> <id name="id" column="yid"> <generator class="hilo"/> </id> <property name="x"/> <one-to-one name="theX" cascade="save-update"/> </class> <class name="org.hibernate.test.legacy.X$XX" table="xxx"> <id name="id"> <generator class="hilo"/> </id> <many-to-one name="x" not-null="true"/> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate XY.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.