Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
I was wondering if it was possible (and how to do it) to have a property that is a generic type.
For instance
Entity<T extends Entity2> {
T property;
}
Hibernate gives me an error when I try to do this, because T is not a mapped class.
Also acceptable would be to have
Entity {
Entity2 property;
}
But hibernate tries to instantiate the abstract class
Where Entity2 is an abstract class.
I there any reference material on how to do this?
Does anyone have another way?
Thanks
Kal