Class Book

java.lang.Object
com.example.restapi.model.Book

@Entity public class Book extends Object
  • Field Details

    • id

      private Long id
    • title

      private String title
    • author

      private String author
    • user

      private User user
  • Constructor Details

    • Book

      public Book()
    • Book

      public Book(String title, String author)
  • Method Details

    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getAuthor

      public String getAuthor()
    • setAuthor

      public void setAuthor(String author)
    • getBorrower

      public User getBorrower()
    • setBorrower

      public void setBorrower(User borrowedBy)