I have a entity class that having Object type as variable how to write mapping for the same.
@Entity
@Table(name="demo")
public class Transaction implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "tid")
private long tid;
Object gentemplate ;
Object coretemplate;
//getter and setter;
}