country.java

来自「达内Java培训实训项目ECPORT原码。 包括逐步优化的四个版本: 简单工」· Java 代码 · 共 62 行

JAVA
62
字号
package com.royee.ecport.pojo;

import java.util.Set;

public class Country extends EntityBase {
	private static final long serialVersionUID = -7307456345147787057L;
	private Long ctid;
	private String name;
	private Set<Province> provinces;
	private Set<ContactInfo> contactInfos;
	
	public Set<Province> getProvinces() {
		return provinces;
	}
	public void setProvinces(Set<Province> provinces) {
		this.provinces = provinces;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getCtid() {
		return ctid;
	}
	public void setCtid(Long ctid) {
		this.ctid = ctid;
	}
	public Set<ContactInfo> getContactInfos() {
		return contactInfos;
	}
	public void setContactInfos(Set<ContactInfo> contactInfos) {
		this.contactInfos = contactInfos;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ctid == null) ? 0 : ctid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Country other = (Country) obj;
		if (ctid == null) {
			if (other.ctid != null)
				return false;
		} else if (!ctid.equals(other.ctid))
			return false;
		return true;
	}
	
	
}

⌨️ 快捷键说明

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