I\'m wondering how an abstract class with generics would handle with JPA? I mean what kind of annotations do I need for the field?
Consider these:
@Mappe
We can. if the T implements Serializable
@Entity
public class IgsSubject extends BasicObject implements Serializable{
private static final long serialVersionUID = -5387429446192609471L;
@MappedSuperclass
public class IgsBasicLog extends BasicObject {
@ManyToOne
@JoinColumn(name = "ITEM_ID")
private T item;
@Entity
public class IgsLogA extends IgsBasicLog implements Serializable {
private static final long serialVersionUID = -8207430344929724212L;
}