I have a class that has the following code:
@Entity
@Table(name="Node")
public class Node {
@Id
@Column(name="node_id")
private Integer nodeId;
@Enumerated(EnumType.STRING)
private NodeType type;
private EntityNode entityNode;
The entityNode object is actually an interface, that many other classes can implement, I just want to be able to map the entityNode to a column entity_id in the node table. Is this possible in JPA?