WIP:site
[hibernate4-maven-plugin] / src / it / tutorials-4.3.9 / basic / src / test / java / org / hibernate / tutorial / hbm / Event.hbm.xml
1 <?xml version="1.0"?>
2
3 <!--
4   ~ Hibernate, Relational Persistence for Idiomatic Java
5   ~
6   ~ Copyright (c) 2010, Red Hat Inc. or third-party contributors as
7   ~ indicated by the @author tags or express copyright attribution
8   ~ statements applied by the authors.  All third-party contributions are
9   ~ distributed under license by Red Hat Inc.
10   ~
11   ~ This copyrighted material is made available to anyone wishing to use, modify,
12   ~ copy, or redistribute it subject to the terms and conditions of the GNU
13   ~ Lesser General Public License, as published by the Free Software Foundation.
14   ~
15   ~ This program is distributed in the hope that it will be useful,
16   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17   ~ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
18   ~ for more details.
19   ~
20   ~ You should have received a copy of the GNU Lesser General Public License
21   ~ along with this distribution; if not, write to:
22   ~ Free Software Foundation, Inc.
23   ~ 51 Franklin Street, Fifth Floor
24   ~ Boston, MA  02110-1301  USA
25   -->
26
27 <!DOCTYPE hibernate-mapping PUBLIC
28         "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
29         "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
30
31 <hibernate-mapping package="org.hibernate.tutorial.hbm">
32
33     <class name="Event" table="EVENTS">
34         <id name="id" column="EVENT_ID">
35             <generator class="increment"/>
36         </id>
37         <property name="date" type="timestamp" column="EVENT_DATE"/>
38         <property name="title"/>
39     </class>
40
41 </hibernate-mapping>