title: How to serialize the object containing List of objects?
body: <p>I have a class with the following fields and i want to persist it to a file.But it is throwing the following exception...
  java.io.NotSerializableException: <em>*</em>*.VehicleDetailsCollection .</p>
  
  <pre><code>public class VehicleDetailsCollectionWrapper implements java.io.Serializable{
  
  private String updatedTime;
  
  private Map&lt;String,VehicleDetailsCollection&gt; vehicleDetailsDTOList;
  
      ********************
      ********************
     }
  </code></pre>