package project.db.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * FooMaster generated by hbm2java
 */
@org.hibernate.annotations.DynamicInsert
@Entity
@Table(name = "foo_master")
public class FooMaster implements java.io.Serializable {

	private Long id;
	private String fooId;
	private String hooId;
	private Date torokuDatetime;
	private String fooName;
	private String fooAddress;
	private String fooPhone;
	private int version;
	private String insertId;
	private Date insertDatetime;
	private String updateId;
	private Date updateDatetime;

	public FooMaster() {
	}

	public FooMaster(String fooId, String hooId, Date torokuDatetime,
			String fooName, int version, String insertId, Date insertDatetime,
			String updateId, Date updateDatetime) {
		this.fooId = fooId;
		this.hooId = hooId;
		this.torokuDatetime = torokuDatetime;
		this.fooName = fooName;
		this.version = version;
		this.insertId = insertId;
		this.insertDatetime = insertDatetime;
		this.updateId = updateId;
		this.updateDatetime = updateDatetime;
	}

	public FooMaster(String fooId, String hooId, Date torokuDatetime,
			String fooName, String fooAddress, String fooPhone, int version,
			String insertId, Date insertDatetime, String updateId,
			Date updateDatetime) {
		this.fooId = fooId;
		this.hooId = hooId;
		this.torokuDatetime = torokuDatetime;
		this.fooName = fooName;
		this.fooAddress = fooAddress;
		this.fooPhone = fooPhone;
		this.version = version;
		this.insertId = insertId;
		this.insertDatetime = insertDatetime;
		this.updateId = updateId;
		this.updateDatetime = updateDatetime;
	}

	@SequenceGenerator(name = "generator")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "foo_id", nullable = false, length = 32)
	public String getFooId() {
		return this.fooId;
	}

	public void setFooId(String fooId) {
		this.fooId = fooId;
	}

	@Column(name = "hoo_id", nullable = false, length = 64)
	public String getHooId() {
		return this.hooId;
	}

	public void setHooId(String hooId) {
		this.hooId = hooId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "toroku_datetime", nullable = false, length = 29)
	public Date getTorokuDatetime() {
		return this.torokuDatetime;
	}

	public void setTorokuDatetime(Date torokuDatetime) {
		this.torokuDatetime = torokuDatetime;
	}

	@Column(name = "foo_name", nullable = false, length = 128)
	public String getFooName() {
		return this.fooName;
	}

	public void setFooName(String fooName) {
		this.fooName = fooName;
	}

	@Column(name = "foo_address", length = 256)
	public String getFooAddress() {
		return this.fooAddress;
	}

	public void setFooAddress(String fooAddress) {
		this.fooAddress = fooAddress;
	}

	@Column(name = "foo_phone", length = 128)
	public String getFooPhone() {
		return this.fooPhone;
	}

	public void setFooPhone(String fooPhone) {
		this.fooPhone = fooPhone;
	}

	@Column(name = "version", nullable = false)
	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	@Column(name = "insert_id", nullable = false, length = 32)
	public String getInsertId() {
		return this.insertId;
	}

	public void setInsertId(String insertId) {
		this.insertId = insertId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "insert_datetime", nullable = false, length = 29)
	public Date getInsertDatetime() {
		return this.insertDatetime;
	}

	public void setInsertDatetime(Date insertDatetime) {
		this.insertDatetime = insertDatetime;
	}

	@Column(name = "update_id", nullable = false, length = 32)
	public String getUpdateId() {
		return this.updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_datetime", nullable = false, length = 29)
	public Date getUpdateDatetime() {
		return this.updateDatetime;
	}

	public void setUpdateDatetime(Date updateDatetime) {
		this.updateDatetime = updateDatetime;
	}

}
