These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Persistence for "interface-based collections"?
PostPosted: Fri Jun 08, 2007 9:27 am 
Newbie

Joined: Fri Jun 08, 2007 9:23 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.