~raginggoblin/infolog/infolog

« back to all changes in this revision

Viewing changes to InfologServer/lib/hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/collection/backref/map/compkey/Mappings.hbm.xml

  • Committer: Raging Goblin
  • Date: 2013-11-16 16:51:32 UTC
  • Revision ID: raging_goblin-20131116165132-weujnptzc88uy4ah
Mavenized the project, now using shared project InfologSync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0"?>
2
 
<!--
3
 
  ~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
4
 
  ~
5
 
  ~ This copyrighted material is made available to anyone wishing to use, modify,
6
 
  ~ copy, or redistribute it subject to the terms and conditions of the GNU
7
 
  ~ Lesser General Public License, v. 2.1. This program is distributed in the
8
 
  ~ hope that it will be useful, but WITHOUT A WARRANTY; without even the implied
9
 
  ~ warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10
 
  ~ Lesser General Public License for more details. You should have received a
11
 
  ~ copy of the GNU Lesser General Public License, v.2.1 along with this
12
 
  ~ distribution; if not, write to the Free Software Foundation, Inc.,
13
 
  ~ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
 
  ~
15
 
  ~ Red Hat Author(s): Steve Ebersole
16
 
  -->
17
 
<!DOCTYPE hibernate-mapping PUBLIC
18
 
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
19
 
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
20
 
 
21
 
<!--
22
 
    Demonstrates a unidirectional map mapping where the map key is a
23
 
    composite.  The unidirectional collection forces Hibernate to use
24
 
    a backref.  We want to make sure the backref works properly with
25
 
    the component.
26
 
-->
27
 
<hibernate-mapping package="org.hibernate.test.collection.backref.map.compkey" default-access="field">
28
 
 
29
 
    <class name="Product" table="t_product">
30
 
        <id name="name"/>
31
 
        <map name="parts" table="Parts" cascade="all,delete-orphan" fetch="join">
32
 
            <key column="productName" not-null="true"/>
33
 
            <composite-map-key class="MapKey">
34
 
                <key-property name="role" column="role_"/>
35
 
            </composite-map-key>
36
 
            <one-to-many class="Part"/>
37
 
        </map>
38
 
    </class>
39
 
 
40
 
    <class name="Part" table="t_part">
41
 
        <id name="name"/>
42
 
        <property name="description" not-null="true"/>
43
 
    </class>
44
 
 
45
 
</hibernate-mapping>
 
 
b'\\ No newline at end of file'