package com.mossle.book.persistence.domain; // Generated by Hibernate Tools import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; /** * BookInfo . * * @author Lingo */ @Entity @Table(name = "BOOK_INFO") public class BookInfo implements java.io.Serializable { private static final long serialVersionUID = 0L; /** null. */ private Long id; /** null. */ private String cover; /** null. */ private String name; /** null. */ private String code; /** null. */ private String author; /** null. */ private String translator; /** null. */ private String isbn; /** null. */ private Double price; /** null. */ private String publishCompany; /** null. */ private Date publishDate; /** null. */ private Integer page; /** null. */ private Date addTime; /** null. */ private String operator; /** null. */ private String status; /** null. */ private String type; /** null. */ private String shelf; /** null. */ private Integer totoalCount; /** null. */ private Integer borrowCount; /** null. */ private Integer borrowTimes; /** null. */ private String description; /** . */ private Set<BookBorrow> bookBorrows = new HashSet<BookBorrow>(0); public BookInfo() { } public BookInfo(Long id) { this.id = id; } public BookInfo(Long id, String cover, String name, String code, String author, String translator, String isbn, Double price, String publishCompany, Date publishDate, Integer page, Date addTime, String operator, String status, String type, String shelf, Integer totoalCount, Integer borrowCount, Integer borrowTimes, String description, Set<BookBorrow> bookBorrows) { this.id = id; this.cover = cover; this.name = name; this.code = code; this.author = author; this.translator = translator; this.isbn = isbn; this.price = price; this.publishCompany = publishCompany; this.publishDate = publishDate; this.page = page; this.addTime = addTime; this.operator = operator; this.status = status; this.type = type; this.shelf = shelf; this.totoalCount = totoalCount; this.borrowCount = borrowCount; this.borrowTimes = borrowTimes; this.description = description; this.bookBorrows = bookBorrows; } /** @return null. */ @Id @Column(name = "ID", unique = true, nullable = false) public Long getId() { return this.id; } /** * @param id * null. */ public void setId(Long id) { this.id = id; } /** @return null. */ @Column(name = "COVER", length = 64) public String getCover() { return this.cover; } /** * @param cover * null. */ public void setCover(String cover) { this.cover = cover; } /** @return null. */ @Column(name = "NAME", length = 200) public String getName() { return this.name; } /** * @param name * null. */ public void setName(String name) { this.name = name; } /** @return null. */ @Column(name = "CODE", length = 200) public String getCode() { return this.code; } /** * @param code * null. */ public void setCode(String code) { this.code = code; } /** @return null. */ @Column(name = "AUTHOR", length = 100) public String getAuthor() { return this.author; } /** * @param author * null. */ public void setAuthor(String author) { this.author = author; } /** @return null. */ @Column(name = "TRANSLATOR", length = 100) public String getTranslator() { return this.translator; } /** * @param translator * null. */ public void setTranslator(String translator) { this.translator = translator; } /** @return null. */ @Column(name = "ISBN", length = 100) public String getIsbn() { return this.isbn; } /** * @param isbn * null. */ public void setIsbn(String isbn) { this.isbn = isbn; } /** @return null. */ @Column(name = "PRICE", precision = 64, scale = 0) public Double getPrice() { return this.price; } /** * @param price * null. */ public void setPrice(Double price) { this.price = price; } /** @return null. */ @Column(name = "PUBLISH_COMPANY", length = 100) public String getPublishCompany() { return this.publishCompany; } /** * @param publishCompany * null. */ public void setPublishCompany(String publishCompany) { this.publishCompany = publishCompany; } /** @return null. */ @Temporal(TemporalType.DATE) @Column(name = "PUBLISH_DATE", length = 10) public Date getPublishDate() { return this.publishDate; } /** * @param publishDate * null. */ public void setPublishDate(Date publishDate) { this.publishDate = publishDate; } /** @return null. */ @Column(name = "PAGE") public Integer getPage() { return this.page; } /** * @param page * null. */ public void setPage(Integer page) { this.page = page; } /** @return null. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = "ADD_TIME", length = 26) public Date getAddTime() { return this.addTime; } /** * @param addTime * null. */ public void setAddTime(Date addTime) { this.addTime = addTime; } /** @return null. */ @Column(name = "OPERATOR", length = 64) public String getOperator() { return this.operator; } /** * @param operator * null. */ public void setOperator(String operator) { this.operator = operator; } /** @return null. */ @Column(name = "STATUS", length = 50) public String getStatus() { return this.status; } /** * @param status * null. */ public void setStatus(String status) { this.status = status; } /** @return null. */ @Column(name = "TYPE", length = 50) public String getType() { return this.type; } /** * @param type * null. */ public void setType(String type) { this.type = type; } /** @return null. */ @Column(name = "SHELF", length = 50) public String getShelf() { return this.shelf; } /** * @param shelf * null. */ public void setShelf(String shelf) { this.shelf = shelf; } /** @return null. */ @Column(name = "TOTOAL_COUNT") public Integer getTotoalCount() { return this.totoalCount; } /** * @param totoalCount * null. */ public void setTotoalCount(Integer totoalCount) { this.totoalCount = totoalCount; } /** @return null. */ @Column(name = "BORROW_COUNT") public Integer getBorrowCount() { return this.borrowCount; } /** * @param borrowCount * null. */ public void setBorrowCount(Integer borrowCount) { this.borrowCount = borrowCount; } /** @return null. */ @Column(name = "BORROW_TIMES") public Integer getBorrowTimes() { return this.borrowTimes; } /** * @param borrowTimes * null. */ public void setBorrowTimes(Integer borrowTimes) { this.borrowTimes = borrowTimes; } /** @return null. */ @Column(name = "DESCRIPTION", length = 200) public String getDescription() { return this.description; } /** * @param description * null. */ public void setDescription(String description) { this.description = description; } /** @return . */ @OneToMany(fetch = FetchType.LAZY, mappedBy = "bookInfo") public Set<BookBorrow> getBookBorrows() { return this.bookBorrows; } /** * @param bookBorrows * . */ public void setBookBorrows(Set<BookBorrow> bookBorrows) { this.bookBorrows = bookBorrows; } }