package org.jboss.tools.example.forgeable3.model; // Generated Mar 13, 2012 10:57:13 AM by Hibernate Tools 3.4.0.CR1 import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** * Actor generated by hbm2java */ @Entity @Table(name = "ACTOR", schema = "PUBLIC", catalog = "SAKILA") public class Actor implements java.io.Serializable { private short actorId; private String firstName; private String lastName; private Date lastUpdate; public Actor() { } public Actor(short actorId, String firstName, String lastName, Date lastUpdate) { this.actorId = actorId; this.firstName = firstName; this.lastName = lastName; this.lastUpdate = lastUpdate; } @Id @Column(name = "ACTOR_ID", unique = true, nullable = false) public short getActorId() { return this.actorId; } public void setActorId(short actorId) { this.actorId = actorId; } @Column(name = "FIRST_NAME", nullable = false, length = 45) public String getFirstName() { return this.firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } @Column(name = "LAST_NAME", nullable = false, length = 45) public String getLastName() { return this.lastName; } public void setLastName(String lastName) { this.lastName = lastName; } @Temporal(TemporalType.TIMESTAMP) @Column(name = "LAST_UPDATE", nullable = false, length = 23) public Date getLastUpdate() { return this.lastUpdate; } public void setLastUpdate(Date lastUpdate) { this.lastUpdate = lastUpdate; } }