package common.db.dao.hibernate;

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
 */
@Entity
@Table(name = "foo_master")
public class FooMaster implements java.io.Serializable {

	private static final long serialVersionUID = -7011922344251626152L;

	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 createUserId;
	private Date createDateTime;
	private String updateUserId;
	private Date updateDateTime;

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

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

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

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

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

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

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "toroku_date_time", nullable = false, length = 29)
	public Date getTorokuDateTime() {
		return this.torokuDateTime;
	}

	public void setTorokuDateTime(Date val) {
		this.torokuDateTime = val;
	}

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

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

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

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

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

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

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

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

	@Column(name = "create_user_id", nullable = false, length = 32)
	public String getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(String val) {
		this.createUserId = val;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_date_time", nullable = false, length = 29)
	public Date getCreateDateTime() {
		return this.createDateTime;
	}

	public void setCreateDateTime(Date val) {
		this.createDateTime = val;
	}

	@Column(name = "update_user_id", nullable = false, length = 32)
	public String getUpdateUserId() {
		return this.updateUserId;
	}

	public void setUpdateUserId(String val) {
		this.updateUserId = val;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_date_time", nullable = false, length = 29)
	public Date getUpdateDateTime() {
		return this.updateDateTime;
	}

	public void setUpdateDateTime(Date val) {
		this.updateDateTime = val;
	}

}
