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

📄 province.java

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

import java.util.HashSet;
import java.util.Set;

/**
 * <pre>
 * 省份Pojo
 * 此Pojo映射数据库中的Province表
 * </pre>
 * 
 * @author zhouyu 2008-1-16
 */
public class Province extends BasePojo {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1555471837609481323L;

	private Long id;

	private Long countryid;

	private String name;

	private Country country;

	private Set contactinfos = new HashSet();

	// Constructors

	/** default constructor */
	public Province() {
	}

	/** minimal constructor */
	public Province(String name) {
		this.name = name;
	}

	/** full constructor */
	public Province(Country country, String name, Set contactinfos) {
		this.country = country;
		this.name = name;
		this.contactinfos = contactinfos;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Country getCountry() {
		return this.country;
	}

	public void setCountry(Country country) {
		this.country = country;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set getContactinfos() {
		return this.contactinfos;
	}

	public void setContactinfos(Set contactinfos) {
		this.contactinfos = contactinfos;
	}

	public String toString() {
		return this.getClass().getName() + "[" + id + "," + name + "]";
	}

	public Long getCountryid() {
		return countryid;
	}

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

⌨️ 快捷键说明

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