October 2018
Intermediate to advanced
982 pages
23h 29m
English
@Entity
public class Book {
@Id
@GeneratedValue
private Long id;
private String isbn;
private String title;
private String description;
@ManyToOne
private Author author;
@ManyToOne
private Publisher publisher;
@ManyToMany
private List<Reviewers> reviewers;
protected Book() {}
public Book(String isbn, String title, Author author, Publisher publisher) {
this.isbn = isbn;
this.title = title;
this.author = author;
this.publisher = publisher;
}
//Skipping getters and setters to save space, but we do need them
}
Read now
Unlock full access