sort.java
来自「ssh 实例spring对hibernate的封装」· Java 代码 · 共 63 行
JAVA
63 行
package com.ssh.hibernate.pojo;
import java.util.HashSet;
import java.util.Set;
/**
* Sort entity.
*
* @author MyEclipse Persistence Tools
*/
public class Sort implements java.io.Serializable {
// Fields
private Long id;
private String name;
private Set products = new HashSet(0);
// Constructors
/** default constructor */
public Sort() {
}
/** minimal constructor */
public Sort(String name) {
this.name = name;
}
/** full constructor */
public Sort(String name, Set products) {
this.name = name;
this.products = products;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Set getProducts() {
return this.products;
}
public void setProducts(Set products) {
this.products = products;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?