I want to persist my litte zoo with Hibernate:
@Entity @Table(name = \"zoo\") public class Zoo { @OneToMany private Set animals = new
I can guess that what you want is mapping of inheritance tree. @Inheritance annotation is the way to go. I don't know if it will work with interfaces, but it will definitely work with abstract classes.