JPA mapping annotations for Object type
===

I will implement an entity class, something like:

    @Entity
    public class XXXEntity {
         @Id
         private Long id;
    
         private Object entity;
    }

But I am not sure how to map the Object type field?

Actually, in my project the object types contain several other entities, like A, B, C. (all A,B, and C implement Serilizable interface)

I want to annotate it as @Lob, but I am not sure it is correct? Because Object doesn't implement Serilizable interface.

Any ideas about that? Thanks.