I am trying to develop an application with Hibernate and javax.persistence Annotations. I have some troubles in mapping an interface.
I have mapped my interface as @MappedSuperclass and I have already tried to use the attribute targetEntity in my ManyToOne Annotation that referred to the interface and it worked. The problem is that I would more than one class to act as targetEntity. In particular I'd like that every class that implements my interface, could be recognized as a target entity.
Does anybody knows if it's possible to do it?