3
~ Copyright (c) 2007, Red Hat Middleware, LLC. All rights reserved.
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.
15
~ Red Hat Author(s): Steve Ebersole
17
<!DOCTYPE hibernate-mapping PUBLIC
18
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
19
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
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
27
<hibernate-mapping package="org.hibernate.test.collection.backref.map.compkey" default-access="field">
29
<class name="Product" table="t_product">
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_"/>
36
<one-to-many class="Part"/>
40
<class name="Part" table="t_part">
42
<property name="description" not-null="true"/>
b'\\ No newline at end of file'