//Create a model class

public class Book implements Serializable{
    
   private int id;
   private String name;

   public Book(){        
   }
   
   public int getId() {
      return id;
   }
   ...
}

@@ -17,16 +17,46 @@
  class%0A%0A
+import java.io.Serializable;%0A%0A
 public c
@@ -224,13 +224,189 @@
   %7D%0A
+%0A   public void setId(int id) %7B%0A      this.id = id;%0A   %7D%0A%0A   public String getName() %7B%0A      return name;%0A   %7D%0A%0A   public void setName(String name) %7B%0A      this.name = name;%0A   %7D 
    
-...
 %0A%7D%0A

Update book.java