@Entity public class Book extends Object implements Serializable
Inventory
instance.
Inventory
.
Many-to-Many bi-directional mapping to Author.
Constructor and Description |
---|
Book()
A no-arg constructor is required for JPA Specification.
|
Book(String ISBN,
String title,
double price,
int initialSupply)
Construct a book with given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthor(Author... authors) |
boolean |
equals(Object obj) |
List<Author> |
getAuthors() |
Inventory |
getInventory() |
String |
getISBN() |
double |
getPrice() |
String |
getTitle() |
int |
getVersion() |
int |
hashCode() |
void |
setAuthors(List<Author> authors) |
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.