Hi all,
Is anyone able to point me in the direction of more information on persisting interfaces in Hibernate/EJB3.0? I can't see them mentioned specifically in either the EJB3.0 persistance spec, or the Hibernate docs.
Hibernate talks about querying using interfaces, but I'm trying to figure out if it will support persisting fields whose types are interfaces, where the implementing class is not known a compile time.
E.g.
Code:
interface Item {}
class ItemList {
Item someitem;
List itemList; /* presume these are all 'Items' */
}
Lets presume there are three or more implementations of 'Item'.... can Hibernate naturally map this to a relational schema? Maybe 1 column for each possible implementing class (some JDO implementations do this). How about collections?
Thanks for your time.
Roger