package com.deloitte.system.model; import com.common.annotation.Table; import com.common.core.domain.BaseModel; @Table(tableName = "contact", clazz = Contact.class) public class Contact extends BaseModel { public static final Contact dao = new Contact(); public Long getDataId(){ return getLong("id"); } public Contact setDataId(Long dataId){ set("id", dataId); return this; } public String getFirstName(){ return getStr("first_name"); } public Contact setFirstName(String firstName){ set("first_name", firstName); return this; } public String getLastName(){ return getStr("last_name"); } public Contact setLastName(String lastName){ set("last_name", lastName); return this; } public String getPostcode(){ return getStr("postcode"); } public Contact setPostcode(String postcode){ set("postcode", postcode); return this; } public String getPostcodeD(){ return getStr("postcode_d"); } public Contact setPostcodeD(String postcodeD){ set("postcode_d", postcodeD); return this; } public String getTitleD(){ return getStr("title_d"); } public Contact setTitleD(String titleD){ set("title_d", titleD); return this; } public String getTitle(){ return getStr("title"); } public Contact setTitle(String title){ set("title", title); return this; } public String getContactEnglishName(){ return getStr("contact_english_name"); } public Contact setContactEnglishName(String contactEnglishName){ set("contact_english_name", contactEnglishName); return this; } public String getEnglishAddress(){ return getStr("english_address"); } public Contact setEnglishAddress(String englishAddress){ set("english_address", englishAddress); return this; } public String getAddress1(){ return getStr("address1"); } public Contact setAddress1(String address1){ set("address1", address1); return this; } public String getAddress2(){ return getStr("address2"); } public Contact setAddress2(String address2){ set("address2", address2); return this; } public String getAddress3(){ return getStr("address3"); } public Contact setAddress3(String address3){ set("address3", address3); return this; } public String getAddress1D(){ return getStr("address1_d"); } public Contact setAddress1D(String address1D){ set("address1_d", address1D); return this; } public String getAddress2D(){ return getStr("address2_d"); } public Contact setAddress2D(String address2D){ set("address2_d", address2D); return this; } public String getAddress3D(){ return getStr("address3_d"); } public Contact setAddress3D(String address3D){ set("address3_d", address3D); return this; } public String getFax(){ return getStr("fax"); } public Contact setFax(String fax){ set("fax", fax); return this; } public String getFaxD(){ return getStr("fax_d"); } public Contact setFaxD(String faxD){ set("fax_d", faxD); return this; } public String getEmailD(){ return getStr("email_d"); } public Contact setEmailD(String emailD){ set("email_d", emailD); return this; } public String getEmail(){ return getStr("email"); } public Contact setEmail(String email){ set("email", email); return this; } public String getMobilePhoneD(){ return getStr("mobile_phone_d"); } public Contact setMobilePhoneD(String mobilePhoneD){ set("mobile_phone_d", mobilePhoneD); return this; } public String getOtherPhoneD(){ return getStr("other_phone_d"); } public Contact setOtherPhoneD(String otherPhoneD){ set("other_phone_d", otherPhoneD); return this; } public String getPhoneD(){ return getStr("phone_d"); } public Contact setPhoneD(String phoneD){ set("phone_d", phoneD); return this; } public String getHomePhone(){ return getStr("home_phone"); } public Contact setHomePhone(String homePhone){ set("home_phone", homePhone); return this; } public String getMobilePhone(){ return getStr("mobile_phone"); } public Contact setMobilePhone(String mobilePhone){ set("mobile_phone", mobilePhone); return this; } public String getOtherPhone(){ return getStr("other_phone"); } public Contact setOtherPhone(String otherPhone){ set("other_phone", otherPhone); return this; } public String getPhone(){ return getStr("phone"); } public Contact setPhone(String Phone){ set("phone", Phone); return this; } public String getSfRecordId(){ return getStr("sf_record_id"); } public Contact setSfRecordId(String sfRecordId){ set("sf_record_id", sfRecordId); return this; } public Contact findById(String dataId){ return this.dao.findFirst("select * from `" + getTableName() + "` where id=? ", dataId); } }