|
Hibernate example source code file (Fum.hbm.xml)
The Hibernate Fum.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.Fum" dynamic-update="true"> <!--cache--> <composite-id name="id" unsaved-value="any"> <meta attribute="fum">fum <key-property name="string"> <column name="string_" length="10"/> </key-property> <key-property name="short" column="short_"/> <key-property name="date" column="date_" type="date"/> </composite-id> <version name="vid" type="short" access="field"/> <!--version name="lastUpdated" type="calendar"/--> <property name="fum" not-null="true"/> <property name="TString"/> <many-to-one name="fo"> <column name="fo_string" length="10"/> <column name="fo_short"/> <column name="fo_date"/> </many-to-one> <set name="friends"> <key> <column name="fr_string_" length="10"/> <column name="fr_short_"/> <column name="fr_date_"/> </key> <one-to-many class="org.hibernate.test.legacy.Fum"/> </set> <array name="quxArray"> <key> <column name="fum_str_" length="10"/> <column name="fum_sho_"/> <column name="fum_dat_"/> </key> <index column="i"/> <one-to-many class="org.hibernate.test.legacy.Qux"/> </array> <property name="dupe" column="short_" insert="false" update="false" not-null="true"/> <component name="mapComponent"> <property name="count" column="count_"/> <map name="fummap" lazy="true"> <key> <column name="fum_str_" length="10"/> <column name="fum_sho_"/> <column name="fum_dat_"/> </key> <index column="fummapindex" type="string"/> <one-to-many class="org.hibernate.test.legacy.Fum"/> </map> <map name="stringmap" outer-join="true"> <key> <column name="fum_str_" length="10"/> <column name="fum_sho_"/> <column name="fum_dat_"/> </key> <index column="mapindex" type="string"/> <element column="mapelement" type="string"/> </map> </component> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Fum.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.