package com.zhouyu.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* TabMobile entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "Dm_Mobile", schema = "")
public class TabMobile implements java.io.Serializable
{
// Fields
private Long mobileNumber;
private Integer id;
private String mobileArea;
private String mobileType;
private String areaCode;
private String postCode;
// Constructors
/** default constructor */
public TabMobile()
{
}
/** minimal constructor */
public TabMobile(Integer id)
{
this.id = id;
}
/** full constructor */
public TabMobile(Integer id, String mobileArea, String mobileType, String areaCode, String postCode)
{
this.id = id;
this.mobileArea = mobileArea;
this.mobileType = mobileType;
this.areaCode = areaCode;
this.postCode = postCode;
}
// Property accessors
@Id
@Column(name = "ID", nullable = false)
public Integer getId()
{
return this.id;
}
public void setId(Integer id)
{
this.id = id;
}
@Column(name = "MobileNumber", unique = true, nullable = false)
public Long getMobileNumber()
{
return this.mobileNumber;
}
public void setMobileNumber(Long mobileNumber)
{
this.mobileNumber = mobileNumber;
}
@Column(name = "MobileArea", length = 20)
public String getMobileArea()
{
return this.mobileArea;
}
public void setMobileArea(String mobileArea)
{
this.mobileArea = mobileArea;
}
@Column(name = "MobileType", length = 50)
public String getMobileType()
{
return this.mobileType;
}
public void setMobileType(String mobileType)
{
this.mobileType = mobileType;
}
@Column(name = "AreaCode", length = 20)
public String getAreaCode()
{
return this.areaCode;
}
public void setAreaCode(String areaCode)
{
this.areaCode = areaCode;
}
@Column(name = "PostCode", length = 20)
public String getPostCode()
{
return this.postCode;
}
public void setPostCode(String postCode)
{
this.postCode = postCode;
}
}