title: Difference between Serializable and non Serializable object save into database
body: <p>What is the different between when saving data object in to database when object is serializable or not serializable.</p>
  
  <p>Ex : I have a domain class called Book</p>
  
  <pre><code>class Book implements Serializable{
  private int id;
  private String name;
  //getter and setter
  }
  </code></pre>
  
  <p>without implements Serializable interface </p>
  
  <pre><code>class Book {
  private int id;
  private String name;
  //getter and setter
  }
  </code></pre>
  
  <p>Now I'm going to store Book object into database table. 
  I know for a fact the when implementing Serializable, data should be convert into byte stream. So what is the difference between above two options when saving data into db</p>
  
  <p>Can anyone correct me
  Thank you
  Amila</p>