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

📄 country.java

📁 本系统是网上购物的详细代码
💻 JAVA
字号:
package cn.com.tarena.ecport.pojo;

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

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

	private static final long serialVersionUID = 4546263387256422636L;

	private Long id;

	private String name;

	private Set<Province> provinces = new HashSet<Province>(0);

	private Set<ContactInfo> contactinfos = new HashSet<ContactInfo>(0);

	public Country() {
		// System.out.println("============ in Country ==============");
	}

	public Country(String name) {
		this.name = name;
	}

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

	/**
	 * @return the id
	 */
	public Long getId() {
		// System.out.println("======== in getId() ==============");
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		// System.out.println("============= in setId() ============="+id);
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		// System.out.println("========== in getName() ==============");
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		// System.out.println("===================== in setName()
		// =============="+name);
		this.name = name;
	}

	/**
	 * @return the provinces
	 */
	public Set<Province> getProvinces() {
		return provinces;
	}

	/**
	 * @param provinces
	 *            the provinces to set
	 */
	public void setProvinces(Set<Province> provinces) {
		// System.out.println("============ in setProvinces() ===============");
		this.provinces = provinces;
	}

	/**
	 * @return the contactinfos
	 */
	public Set<ContactInfo> getContactinfos() {
		return contactinfos;
	}

	/**
	 * @param contactinfos
	 *            the contactinfos to set
	 */
	public void setContactinfos(Set<ContactInfo> contactinfos) {
		// System.out.println("============ in setContactInfo()
		// ================");
		this.contactinfos = contactinfos;
	}

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

⌨️ 快捷键说明

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