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 StringgetDescription()longgetId()intgetPages()StringgetTitle()voidsetDescription(String description)voidsetPages(int pages)voidsetTitle(String title)StringtoString()
-
-
-
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)
-
-