Class 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.
    • Field Detail

      • id

        private long id
      • pages

        private int pages
      • description

        private String description
    • Constructor Detail

      • Book

        public Book()
      • Book

        public Book​(long id)
    • 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)