package com.example.forgeWiz3.model; // Generated Jul 19, 2013 1:51:28 PM 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; /** * Staff generated by hbm2java */ @Entity @Table(name="STAFF" ,schema="PUBLIC" ,catalog="SAKILA" ) public class Staff implements java.io.Serializable { private byte staffId; private String firstName; private String lastName; private short addressId; private byte[] picture; private String email; private byte storeId; private boolean active; private String username; private String password; private Date lastUpdate; public Staff() { } public Staff(byte staffId, String firstName, String lastName, short addressId, byte storeId, boolean active, String username, Date lastUpdate) { this.staffId = staffId; this.firstName = firstName; this.lastName = lastName; this.addressId = addressId; this.storeId = storeId; this.active = active; this.username = username; this.lastUpdate = lastUpdate; } public Staff(byte staffId, String firstName, String lastName, short addressId, byte[] picture, String email, byte storeId, boolean active, String username, String password, Date lastUpdate) { this.staffId = staffId; this.firstName = firstName; this.lastName = lastName; this.addressId = addressId; this.picture = picture; this.email = email; this.storeId = storeId; this.active = active; this.username = username; this.password = password; this.lastUpdate = lastUpdate; } @Id @Column(name="STAFF_ID", unique=true, nullable=false) public byte getStaffId() { return this.staffId; } public void setStaffId(byte staffId) { this.staffId = staffId; } @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; } @Column(name="ADDRESS_ID", nullable=false) public short getAddressId() { return this.addressId; } public void setAddressId(short addressId) { this.addressId = addressId; } @Column(name="PICTURE") public byte[] getPicture() { return this.picture; } public void setPicture(byte[] picture) { this.picture = picture; } @Column(name="EMAIL", length=50) public String getEmail() { return this.email; } public void setEmail(String email) { this.email = email; } @Column(name="STORE_ID", nullable=false) public byte getStoreId() { return this.storeId; } public void setStoreId(byte storeId) { this.storeId = storeId; } @Column(name="ACTIVE", nullable=false) public boolean isActive() { return this.active; } public void setActive(boolean active) { this.active = active; } @Column(name="USERNAME", nullable=false, length=16) public String getUsername() { return this.username; } public void setUsername(String username) { this.username = username; } @Column(name="PASSWORD", length=40) public String getPassword() { return this.password; } public void setPassword(String password) { this.password = password; } @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; } }