package webctdbexport.db;
// Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* Phone generated by hbm2java
*/
@Entity
@Table(name="PHONE"
)
public class Phone implements java.io.Serializable {
private BigDecimal id;
private PhoneType phoneType;
private Person person;
private boolean deletestatus;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private String phoneNumber;
public Phone() {
}
public Phone(BigDecimal id, PhoneType phoneType, Person person, boolean deletestatus, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.phoneType = phoneType;
this.person = person;
this.deletestatus = deletestatus;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public Phone(BigDecimal id, PhoneType phoneType, Person person, boolean deletestatus, BigDecimal createTs, BigDecimal lastmodifyTs, String phoneNumber) {
this.id = id;
this.phoneType = phoneType;
this.person = person;
this.deletestatus = deletestatus;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.phoneNumber = phoneNumber;
}
@Id
@Column(name="ID", nullable=false, precision=20, scale=0)
public BigDecimal getId() {
return this.id;
}
public void setId(BigDecimal id) {
this.id = id;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="PHONE_TYPE_ID", nullable=false)
public PhoneType getPhoneType() {
return this.phoneType;
}
public void setPhoneType(PhoneType phoneType) {
this.phoneType = phoneType;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="PERSON_ID", nullable=false)
public Person getPerson() {
return this.person;
}
public void setPerson(Person person) {
this.person = person;
}
@Column(name="DELETESTATUS", nullable=false, precision=1, scale=0)
public boolean isDeletestatus() {
return this.deletestatus;
}
public void setDeletestatus(boolean deletestatus) {
this.deletestatus = deletestatus;
}
@Column(name="CREATE_TS", nullable=false, precision=20, scale=0)
public BigDecimal getCreateTs() {
return this.createTs;
}
public void setCreateTs(BigDecimal createTs) {
this.createTs = createTs;
}
@Column(name="LASTMODIFY_TS", nullable=false, precision=20, scale=0)
public BigDecimal getLastmodifyTs() {
return this.lastmodifyTs;
}
public void setLastmodifyTs(BigDecimal lastmodifyTs) {
this.lastmodifyTs = lastmodifyTs;
}
@Column(name="PHONE_NUMBER", length=128)
public String getPhoneNumber() {
return this.phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
}