package open.dolphin.infomodel;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
*
* @author kazushi
*/
@Entity
@Table(name = "demo_patient")
public class DemoPatient implements Serializable {
private static final long serialVersionUID = 1L;
@Id
private Long id;
@Column(nullable=false)
private String name;
@Column(nullable=false)
private String kana;
private String email;
private String sex;
private String age;
private String birthday;
private String marital;
private String address;
private String addressCode;
private String telephone;
private String mobile;
private String carrier;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Override
public int hashCode() {
int hash = 0;
hash += (id != null ? id.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof DemoPatient)) {
return false;
}
DemoPatient other = (DemoPatient) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
}
@Override
public String toString() {
return "open.dolphin.infomodel.DemoPatient[id=" + id + "]";
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the kana
*/
public String getKana() {
return kana;
}
/**
* @param kana the kana to set
*/
public void setKana(String kana) {
this.kana = kana;
}
/**
* @return the email
*/
public String getEmail() {
return email;
}
/**
* @param email the email to set
*/
public void setEmail(String email) {
this.email = email;
}
/**
* @return the sex
*/
public String getSex() {
return sex;
}
/**
* @param sex the sex to set
*/
public void setSex(String sex) {
this.sex = sex;
}
/**
* @return the age
*/
public String getAge() {
return age;
}
/**
* @param age the age to set
*/
public void setAge(String age) {
this.age = age;
}
/**
* @return the birthday
*/
public String getBirthday() {
return birthday;
}
/**
* @param birthday the birthday to set
*/
public void setBirthday(String birthday) {
this.birthday = birthday;
}
/**
* @return the marital
*/
public String getMarital() {
return marital;
}
/**
* @param marital the marital to set
*/
public void setMarital(String marital) {
this.marital = marital;
}
/**
* @return the address
*/
public String getAddress() {
return address;
}
/**
* @param address the address to set
*/
public void setAddress(String address) {
this.address = address;
}
/**
* @return the addressCode
*/
public String getAddressCode() {
return addressCode;
}
/**
* @param addressCode the addressCode to set
*/
public void setAddressCode(String addressCode) {
this.addressCode = addressCode;
}
/**
* @return the telephone
*/
public String getTelephone() {
return telephone;
}
/**
* @param telephone the telephone to set
*/
public void setTelephone(String telephone) {
this.telephone = telephone;
}
/**
* @return the mobile
*/
public String getMobile() {
return mobile;
}
/**
* @param mobile the mobile to set
*/
public void setMobile(String mobile) {
this.mobile = mobile;
}
/**
* @return the carrier
*/
public String getCarrier() {
return carrier;
}
/**
* @param carrier the carrier to set
*/
public void setCarrier(String carrier) {
this.carrier = carrier;
}
}