Package ejava.examples.daoex.bo
Class Book
- java.lang.Object
-
- ejava.examples.daoex.bo.Book
-
public class Book extends Object
This is an example entity class that will get mapped into the database using a DAO. Note that the id carries the primary key and should not be modified after the object is created. This is why setId() is set to private.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
long
getId()
int
getPages()
String
getTitle()
void
setDescription(String description)
void
setPages(int pages)
void
setTitle(String title)
String
toString()
-
-
-
Method Detail
-
getId
public long getId()
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getPages
public int getPages()
-
setPages
public void setPages(int pages)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
-