f786e79eb4e5da255c1e228d787a064f615d37e0
[hibernate-maven-plugin] / src / it / tutorials-5.1.17 / 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   ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
7   ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
8   -->
9 <!DOCTYPE hibernate-mapping PUBLIC
10         "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
11         "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
12
13 <hibernate-mapping package="org.hibernate.tutorial.hbm">
14
15     <class name="Event" table="EVENTS">
16         <id name="id" column="EVENT_ID">
17             <generator class="increment"/>
18         </id>
19         <property name="date" type="timestamp" column="EVENT_DATE"/>
20         <property name="title"/>
21     </class>
22
23 </hibernate-mapping>