Line edits regarding HHH-5441

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20148 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
misty 2010-08-15 23:30:30 +00:00
parent 916a6ecb3e
commit c4e630364a
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<hibernate-mapping package="org.hibernate.tutorial.native">
<class name="Event" table="EVENTS">
<id name="id" column="EVENT_ID">
<generator class="enhanced-sequence"/>
</id>
<property name="date" type="timestamp" column="EVENT_DATE"/>
<property name="title"/>
</class>
</hibernate-mapping>

View File

@ -0,0 +1,36 @@
package org.hibernate.tutorial.native;
import java.util.Date;
public class Event {
private Long id;
private String title;
private Date date;
public Event() {}
public Long getId() {
return id;
}
private void setId(Long id) {
this.id = id;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}