|
Hi,
I have some troubles persisting an existing code base with Hibernate.
I've tried to search the online resources but without any luck. I'm not sure whether my question is too simple or too special at all.
Few of my classes contain some "collection of interfaces". The target entities of relations are not classes, but java interfaces like this:
private Collection<Employable> employees = new ArrayList<Employable>();
My problem even gets worse because there are different java classes implementing the java interface "Employable" without a common base class.
I wonder if there is a way to handle such "interface-based collections" in Hibernate at all or if this is simply "unsolvable"?
Many thanks in advance,
Christian
|