Package openbook.domain
Class Author
- java.lang.Object
-
- openbook.domain.Author
-
@Entity public class Author extends java.lang.Object
A persistent entity to represent an author of one or more Book.
Notes: No setter for identity value.
- Identity:Generated value as identity.
- Mapping:Many-to-Many mapping to Books.
- Version: Yes.
- Author:
- Pinaki Poddar
-
-
Constructor Summary
Constructors Constructor Description Author()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBook(Book book)
java.util.Set<Book>
getBooks()
long
getId()
java.lang.String
getName()
int
getVersion()
void
setName(java.lang.String name)
-