Created
April 2, 2011 02:31
-
-
Save danlynn/899185 to your computer and use it in GitHub Desktop.
Domain class generated by hibernate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.itcadre.adapt.hibernate; | |
// Generated Apr 1, 2011 10:29:11 PM by Hibernate Tools 3.4.0.CR1 | |
import java.util.Date; | |
import javax.persistence.Column; | |
import javax.persistence.Entity; | |
import javax.persistence.GeneratedValue; | |
import javax.persistence.Id; | |
import javax.persistence.Table; | |
import javax.persistence.Temporal; | |
import javax.persistence.TemporalType; | |
import javax.persistence.Version; | |
/** | |
* Contain template details | |
*/ | |
@Entity | |
@Table(name = "templates") | |
public class Template implements java.io.Serializable { | |
private long id; | |
private Date timestamp; | |
private String name; | |
private String type; | |
private String template; | |
public Template() { | |
} | |
public Template(String name, String type, String template) { | |
this.name = name; | |
this.type = type; | |
this.template = template; | |
} | |
@Id | |
@GeneratedValue | |
@Column(name = "id", nullable = false) | |
public long getId() { | |
return this.id; | |
} | |
public void setId(long id) { | |
this.id = id; | |
} | |
@Version | |
@Temporal(TemporalType.TIMESTAMP) | |
@Column(name = "timestamp", nullable = false) | |
public Date getTimestamp() { | |
return this.timestamp; | |
} | |
public void setTimestamp(Date timestamp) { | |
this.timestamp = timestamp; | |
} | |
@Column(name = "name", nullable = false) | |
public String getName() { | |
return this.name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
@Column(name = "type", nullable = false) | |
public String getType() { | |
return this.type; | |
} | |
public void setType(String type) { | |
this.type = type; | |
} | |
@Column(name = "template", nullable = false) | |
public String getTemplate() { | |
return this.template; | |
} | |
public void setTemplate(String template) { | |
this.template = template; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment