title: JPA mapping annotations for Object type
body: <p>I will implement an entity class, something like:</p>
  
  <pre><code>@Entity
  public class XXXEntity {
       @Id
       private Long id;
  
       private Object entity;
  }
  </code></pre>
  
  <p>But I am not sure how to map the Object type field?</p>
  
  <p>Actually, in my project the object types contain several other entities, like A, B, C. (all A,B, and C implement Serilizable interface)</p>
  
  <p>I want to annotate it as @Lob, but I am not sure it is correct? Because Object doesn't implement Serilizable interface.</p>
  
  <p>Any ideas about that? Thanks.</p>