📄 item.java
字号:
package hibernate.demo.ManyToMany;
import java.io.Serializable;
import java.util.Set;
import java.util.HashSet;
public class Item implements Serializable {
private Long id;
private String name;
private double basePrice;
private Set categories=new HashSet();
/** full constructor */
public Item(String name, double basePrice ) {
this.name = name;
this.basePrice = basePrice;
}
/** default constructor */
public Item() {
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public double getBasePrice() {
return this.basePrice;
}
public void setBasePrice(double basePrice) {
this.basePrice = basePrice;
}
public Set getCategories() {
return this.categories;
}
public void setCategories(Set categories) {
this.categories = categories;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -