customer.java
来自「jave--- --- ---- 一对多关系例子」· Java 代码 · 共 67 行
JAVA
67 行
package net.xinxing;
import java.util.HashSet;
import java.util.Set;
/**
* Customer entity.
*
* @author MyEclipse Persistence Tools
*/
public class Customer implements java.io.Serializable {
// Fields
private Integer cid;
private String name;
private String sex;
private Set orders = new HashSet();
// Constructors
/** default constructor */
public Customer() {
}
/** full constructor */
public Customer(String name, String sex) {
this.name = name;
this.sex = sex;
}
// Property accessors
public Integer getCid() {
return this.cid;
}
public void setCid(Integer cid) {
this.cid = cid;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return this.sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public Set getOrders() {
return orders;
}
public void setOrders(Set orders) {
this.orders = orders;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?