content: package com.study.benchmarkorm.model;
  
  
  public class Book {
  
      private long id;
  
      private String author;
  
      private String title;
  
      private int pagesCount;
  
      private int bookId;
  
      private long libraryId;
      
      private Library library;
  
      public Book() {
      }
      public Book(String author,String title,
                  int pagesCount, int bookId) {
          this.author = author;
          this.title = title;
          this.pagesCount = pagesCount;
          this.bookId = bookId;
      }
  
      public Book(String author,String title,
              int pagesCount, int bookId, Library library) {
          this.author = author;
          this.title = title;
          this.pagesCount = pagesCount;
          this.bookId = bookId;
          this.libraryId = library.getId();
          this.Library = library;
      }
  
      public long getId() {
          return id;
      }
  
      public void setId(long id) {
          this.id = id;
      }
  
      public String getAuthor() {
          return author;
      }
  
      public void setAuthor(String author) {
          this.author = author;
      }
  
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
      public int getPagesCount() {
          return pagesCount;
      }
  
      public void setPagesCount(int pagesCount) {
          this.pagesCount = pagesCount;
      }
  
      public int getBookId() {
          return bookId;
      }
  
      public void setBookId(int bookId) {
          this.bookId = bookId;
      }
  
      public long getLibraryId() {
          return libraryId;
      }
  
      public void setLibraryId(long libraryId) {
          this.libraryId = libraryId;
      }
      
      public Library getLibrary() {
          return library;
      }
  
      public void setLibrary(Library library) {
          this.library = library;
      }
  }
  