|
Hibernate example source code file (Wicked.hbm.xml)
The Hibernate Wicked.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"> <!-- Mapping document mainly used for testing non-reflective MetadataSourceProcessor + meta inheritance --> <hibernate-mapping default-lazy="false"> <meta attribute="global">global value <meta attribute="globalnoinherit" inherit="false">only visible at top level <meta attribute="globalmutated">top level <class name="org.hibernate.test.legacy.Wicked" table="WICKED" schema="HR"> <meta attribute="implements">java.lang.Observer <meta attribute="implements">java.lang.Observer <meta attribute="implements" inherit="false">org.foo.BogusVisitor <meta attribute="extends">AuditInfo <meta attribute="globalmutated">wicked level <id name="id" type="long" column="EMPLOYEE_ID"> <generator class="assigned"/> </id> <version name="versionProp" type="long"/> <property name="stringProp" type="string"/> <property name="doubleProp" type="double"/> <property name="objectDoubleProp" type="java.lang.Double"/> <property name="booleanProp" type="boolean"/> <property name="objectBooleanProp" type="java.lang.Boolean"/> <property name="binaryProp" type="binary"/> <many-to-one name="objectManyToOne" class="org.hibernate.test.legacy.Employee" column="MANAGER_ID"/> <component name="component" class="net.sf.hibern8ide.test.MonetaryAmount"> <meta attribute="componentonly" inherit="true"/> <meta attribute="implements">AnotherInterface <meta attribute="allcomponent"/> <meta attribute="globalmutated">monetaryamount level <property name="x" type="string"> <meta attribute="globalmutated">monetaryamount x level </property> </component> <set name="sortedEmployee" sort="org.hibernate.test.legacy.NonExistingComparator"> <meta attribute="globalmutated">sortedemployee level <key column="attrb_id"/> <many-to-many class="org.hibernate.test.legacy.Employee" column="id"/> </set> <bag name="anotherSet"> <key column="attrb2_id"/> <composite-element class="org.hibernate.test.legacy.Employee"> <meta attribute="globalmutated">monetaryamount anotherSet composite level <property name="emp" type="string"> <meta attribute="globalmutated">monetaryamount anotherSet composite property emp level </property> <many-to-one name="empinone" class="org.hibernate.test.legacy.Employee"> <meta attribute="globalmutated">monetaryamount anotherSet composite property empinone level </many-to-one> </composite-element> </bag> </class> <class name="org.hibernate.test.legacy.Employee"> <composite-id class="X"> <key-property name="comp" type="string"/> </composite-id> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Wicked.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.