📄 booktable.java
字号:
package com.xfaccp.bookonline.hib.dto;
import java.io.UnsupportedEncodingException;
import java.util.HashSet;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
import com.xfaccp.bookonline.hib.dto.base.BaseHibernateDTO;
/**
* BookTable generated by MyEclipse - Hibernate Tools
*/
public class BookTable extends BaseHibernateDTO {
// Fields
@Override
public void reset(ActionMapping arg0, HttpServletRequest arg1) {
// TODO Auto-generated method stub
super.reset(arg0, arg1);
try {
arg1.setCharacterEncoding("gb2312");
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private Integer bookid;
private CatalogTable catalogTable;
private Integer catalogid;
private String bookname;
private Integer price;
private String picture;
private FormFile file;
private Set orderitemTables = new HashSet(0);
// Constructors
/** default constructor */
public BookTable() {
}
/** minimal constructor */
public BookTable(CatalogTable catalogTable) {
this.catalogTable = catalogTable;
}
/** full constructor */
public BookTable(CatalogTable catalogTable, String bookname, Integer price,
String picture, Set orderitemTables) {
this.catalogTable = catalogTable;
this.bookname = bookname;
this.price = price;
this.picture = picture;
this.orderitemTables = orderitemTables;
}
// Property accessors
public Integer getBookid() {
return this.bookid;
}
public void setBookid(Integer bookid) {
this.bookid = bookid;
}
public CatalogTable getCatalogTable() {
return this.catalogTable;
}
public void setCatalogTable(CatalogTable catalogTable) {
this.catalogTable = catalogTable;
}
public String getBookname() {
return this.bookname;
}
public void setBookname(String bookname) {
this.bookname = bookname;
}
public Integer getPrice() {
return this.price;
}
public void setPrice(Integer price) {
this.price = price;
}
public String getPicture() {
return this.picture;
}
public void setPicture(String picture) {
this.picture = picture;
}
public Set getOrderitemTables() {
return this.orderitemTables;
}
public void setOrderitemTables(Set orderitemTables) {
this.orderitemTables = orderitemTables;
}
public FormFile getFile() {
return file;
}
public void setFile(FormFile file) {
this.file = file;
}
public Integer getCatalogid() {
return catalogid;
}
public void setCatalogid(Integer catalogid) {
this.catalogid = catalogid;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -