HTML and CSS Reference
In-Depth Information
@Entity
@Table(name = "BOOK")
public class Book implements Serializable {
private static final long serialVersionUID = 197654646546456456L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "ID")
private Integer id;
@Basic(optional = false)
@NotNull
@Size(min = 10, max = 20, message = "ISBN must be between 10 and 20 characters")
@Column(name = "ISBN")
private String isbn;
@Basic(optional = false)
@NotNull
@Size(min = 5, max = 128, message = "Book title must be between 5 and 128 characters")
@Column(name = "TITLE")
private String title;
@Basic(optional = false)
@NotNull
@Size(min = 3, max = 128, message = "Book author must be between 3 and 128 characters")
@Column(name = "AUTHOR")
private String author;
@Basic(optional = false)
@NotNull
@Size(min = 3, max = 64, message = "Book publisher must be between 3 and 64 characters")
@Column(name = "PUBLISHER")
private String publisher;
@Basic(optional = false)
@NotNull
@Size(min = 3, max = 64, message = "Book language must be between 3 and 64 characters")
@Column(name = "LANG")
private String lang;
@Basic(optional = false)
@Lob
@Column(name = "CONTENT")
private Serializable content;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "bookId")
private List<BookRequest> bookRequestList;
public Book() {
}
Search WWH ::




Custom Search