📄 province.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 String name ;
private Country country ;
private Set contactinfos = new HashSet(0);
// Constructors
/** default constructor */
public Province() {
}
public Province(Long id, String name) {
super();
this.id = id;
this.name = name;
}
/** 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+"]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -