| |
|
| java.lang.Object org.ow2.easybeans.examples.ear.Author
Author | public class Author (Code) | | Author of a book.
author: Florent Benoit |
Constructor Summary | |
public | Author() Default constructor. | public | Author(String name) Constructor with a given author name. |
Author | public Author()(Code) | | Default constructor.
|
Author | public Author(String name)(Code) | | Constructor with a given author name.
Parameters: name - - the name of the author |
addBook | public void addBook(String title)(Code) | | Add a book with a given title.
Parameters: title - - the title of the book |
getBooks | public Collection<Book> getBooks()(Code) | | Relation ship (do not using lazy mode).
books written by this author |
getId | public long getId()(Code) | | an id for this object (incremented automatically) |
setBooks | public void setBooks(Collection<Book> books)(Code) | | Sets the collection of books written by this author.
Parameters: books - the list of the books |
setId | public void setId(long id)(Code) | | Sets the id of this author object.
Parameters: id - the given id of this author |
setName | public void setName(String name)(Code) | | Sets the name of the author.
Parameters: name - - the name of this author |
toString | public String toString()(Code) | | String representation of this entity object. |
|
|
|