type.java
来自「图书管理系统」· Java 代码 · 共 70 行
JAVA
70 行
package com.bean;
// default package
import java.util.HashSet;
import java.util.Set;
/**
* Type entity. @author MyEclipse Persistence Tools
*/
public class Type implements java.io.Serializable {
// Fields
private Integer id;
private String name;
private Set books = new HashSet(0);
// Constructors
/** default constructor */
public Type() {
}
/** full constructor */
public Type(String name, Set books) {
this.name = name;
this.books = books;
}
// Property accessors
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Set getBooks() {
return this.books;
}
public void setBooks(Set books) {
this.books = books;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?