|
Hibernate example source code file (Baz.hbm.xml)
The Hibernate Baz.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.Baz" table="baz" check="count_count > -666"> <id name="code" type="string"> <column name="baz_id_column_" length="32"/> <generator class="uuid.hex"/> </id> <property name="count" column="count_count"/> <property name="name" column="name_b"/> <!--property name="text" type="text" column="text_"/--> <many-to-one name="foo" outer-join="true" class="org.hibernate.test.legacy.Foo"/> <list name="stringList" table="string_list" batch-size="12"> <key> <column name="id" length="16"/> </key> <index column="`i`"/> <element column="element" type="string"/> </list> <primitive-array name="intArray" table="int_array"> <key> <column name="id" length="16"/> </key> <index column="i"/> <element column="j" type="int"/> </primitive-array> <set name="fooSet" lazy="true" order-by="string_" batch-size="12"> <key> <column name="baz_id" length="16"/> </key> <one-to-many class="org.hibernate.test.legacy.Foo"/> </set> <array name="components" table="bazcomponents"> <key> <column name="baz_id" length="16"/> </key> <index column="i"/> <composite-element class="org.hibernate.test.legacy.FooComponent"> <parent name="baz"/> <property name="name"> <column name="name" length="56"/> </property> <property name="count" column="count_"/> <nested-composite-element name="subcomponent" class="org.hibernate.test.legacy.FooComponent"> <property name="name" column="x_"/> <property name="count" column="y_"/> </nested-composite-element> </composite-element> </array> <array name="timeArray"> <key> <column name="baz_id" length="16"/> </key> <index column="j"/> <element column="the_time" type="time"/> </array> <bag name="bag" order-by="`name_`" table="`bxaxg`"> <key> <column name="`baz_id_`" length="16"/> </key> <element column="`name_`" type="string"/> </bag> <map name="fooToGlarch" lazy="false"> <key> <column name="baz_id" length="16"/> </key> <index-many-to-many column="foo_id" class="org.hibernate.test.legacy.Foo"/> <many-to-many column="glarch_id" class="org.hibernate.test.legacy.Glarch"/> </map> <map name="fooComponentToFoo"> <!--cache--> <key> <column name="baz_id" length="16"/> </key> <composite-index class="org.hibernate.test.legacy.FooComponent"> <key-property name="name" length="32"/> <key-property name="count" column="count_"/> </composite-index> <many-to-many column="foo_id" class="org.hibernate.test.legacy.Foo" outer-join="true"/> </map> <map name="glarchToFoo"> <key> <column name="gtf_baz_id" length="16"/> </key> <index-many-to-many column="gtf_foo_id" class="org.hibernate.test.legacy.Foo"/> <one-to-many class="org.hibernate.test.legacy.Glarch"/> </map> <set name="stringSet" lazy="true" sort="org.hibernate.test.legacy.StringComparator" batch-size="12"> <!-- Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Baz.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.