⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 contactinfo.java

📁 这是一个用ibatis实现持久层的 配置文件的例子 希望对初学者有帮助。
💻 JAVA
字号:
package cn.com.tarena.ecport.pojo;

/**
 * <pre>
 * 联系信息Pojo
 * 此Pojo映射数据库中的ContactInfo表
 * </pre>
 * 
 * @author zhouyu 2008-1-16
 */
public class ContactInfo extends BasePojo {

	 /**
	 * 
	 */
	private static final long serialVersionUID = 1859915020935798258L;
    private String userid;
    private Long  provinceid;
    private Long   countryid;
	private Long contactid;//�û���ϸ��������к�

	private User users;//�ĸ��û�����ϸ

	private String street1;//jϵ��ַ1

	private String street2;//jϵ��ַ2

	private Country country;//���

	private Province province;//ʡ

	private String city;//����

	private String zip;//�ʱ�

	private String email;//�����ַ

	private String homephone;//��ͥ�绰

	private String cellphone;//���˵绰

	private String officephone;//�칫�绰

	public ContactInfo() {
	}

	public ContactInfo(User users, String street1, String street2, Country country, Province province, String city, String zip, String email, String homephone, String cellphone, String officephone) {
		this.users = users;
		this.street1 = street1;
		this.street2 = street2;
		this.country = country;
		this.province = province;
		this.city = city;
		this.zip = zip;
		this.email = email;
		this.homephone = homephone;
		this.cellphone = cellphone;
		this.officephone = officephone;
	}

	/**
	 * @return the cellphone
	 */
	public String getCellphone() {
		return cellphone;
	}

	/**
	 * @param cellphone the cellphone to set
	 */
	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}

	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * @return the contactid
	 */
	public Long getContactid() {
		return contactid;
	}

	/**
	 * @param contactid the contactid to set
	 */
	public void setContactid(Long contactid) {
		this.contactid = contactid;
	}


	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the homephone
	 */
	public String getHomephone() {
		return homephone;
	}

	/**
	 * @param homephone the homephone to set
	 */
	public void setHomephone(String homephone) {
		this.homephone = homephone;
	}

	/**
	 * @return the officephone
	 */
	public String getOfficephone() {
		return officephone;
	}

	/**
	 * @param officephone the officephone to set
	 */
	public void setOfficephone(String officephone) {
		this.officephone = officephone;
	}
	
	/**
	 * @return the country
	 */
	public Country getCountry() {
		return country;
	}
	/*public Long getCountryid() {
		return country.getId();
	}*/
	/*public void setCountryid(Long id) {
		this.country.setId(id);
	}*/
	/**
	 * @param country the country to set
	 */
	public void setCountry(Country country) {
		this.country = country;
	}

	/**
	 * @return the province
	 */
	public Province getProvince() {
		return province;
	}
/*	public Long getProvinceid() {
		return province.getId();
	}*/
	/*public void setProvinceid(Long id) {
		this.province.setId(id);
	}*/

	/**
	 * @param province the province to set
	 */
	public void setProvince(Province province) {
		this.province = province;
	}

	/**
	 * @return the street1
	 */
	public String getStreet1() {
		return street1;
	}

	/**
	 * @return the users
	 */
	public User getUsers() {
		return users;
	}
/*	public String getUserid() {
		return users.getUserid();
	}*/
	/*public void setUserid(String s) {
		this.users.setUserid(s);
	}*/
	/**
	 * @param users the users to set
	 */
	public void setUsers(User users) {
		this.users = users;
	}

	/**
	 * @param street1 the street1 to set
	 */
	public void setStreet1(String street1) {
		this.street1 = street1;
	}

	/**
	 * @return the street2
	 */
	public String getStreet2() {
		return street2;
	}

	/**
	 * @param street2 the street2 to set
	 */
	public void setStreet2(String street2) {
		this.street2 = street2;
	}

	/**
	 * @return the zip
	 */
	public String getZip() {
		return zip;
	}

	/**
	 * @param zip the zip to set
	 */
	public void setZip(String zip) {
		this.zip = zip;
	}

	public Long getCountryid() {
		return countryid;
	}

	public void setCountryid(Long countryid) {
		this.countryid = countryid;
	}

	public Long getProvinceid() {
		return provinceid;
	}

	public void setProvinceid(Long provinceid) {
		this.provinceid = provinceid;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -