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

📄 country.java

📁 一个自娱自乐的demo 开发环境 apache-tomcat-6.0.16 Mysql 5.1.11 Jdk 1.6 文件结构如下 --MyGame -----MyGam
💻 JAVA
字号:
package com.hb.base.domain.common;// Generated 2007/12/03 18:44:52 by Hibernate Tools 3.2.0.b11import java.util.HashSet;import java.util.Set;import com.hb.core.bean.BaseHibernateDomainBean;import org.apache.commons.lang.builder.EqualsBuilder;import org.apache.commons.lang.builder.HashCodeBuilder;/** * @author 何 貝 *  * 国家信息 */public class Country extends BaseHibernateDomainBean {	/***/	private static final long serialVersionUID = 4011382066415216870L;	/** 国家ID */	private String countryID;	/** 国家名称 */	private String name;	/** 包含的国民 */	private Set<Person> personSet = new HashSet<Person>();	public Country() {	}	public Country(String countryID) {		this.countryID = countryID;	}	public Country(String countryID, String name, Set<Person> personSet) {		this.countryID = countryID;		this.name = name;		this.personSet = personSet;	}	public String getCountryID() {		return this.countryID;	}	public void setCountryID(String countryID) {		this.countryID = countryID;	}	public String getName() {		return this.name;	}	public void setName(String name) {		this.name = name;	}	public Set<Person> getPersonSet() {		return this.personSet;	}	public void setPersonSet(Set<Person> personSet) {		this.personSet = personSet;	}	/**	 * @see java.lang.Object#equals(Object)	 */	public boolean equals(Object object) {		if (!(object instanceof Country)) {			return false;		}		Country rhs = (Country) object;		return new EqualsBuilder().append(this.countryID, rhs.countryID).isEquals();	}	/**	 * @see java.lang.Object#hashCode()	 */	public int hashCode() {		return new HashCodeBuilder(1967170153, 1490225429).append(this.countryID).toHashCode();	}}

⌨️ 快捷键说明

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