-->
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: Persisting a "generic" set of objects
PostPosted: Fri Jan 15, 2010 7:44 am 
Beginner
Beginner

Joined: Wed Nov 12, 2008 12:07 pm
Posts: 21
I have this doubt for some time, couldn't find any info in my documentation, it's about how Hibernate persists a "generic" set of objects:
Suppose we have a class Customer with a Set of Automobile: Set<Automobile>
Truck and Motorcicle are generalization of Automobile.

How do hibernate store this set of Automobile if I add Motorcicle and Truck objects on it? How does it work for the many inheritance strategies that Automobile may have? What if Automobile is concrete?
I'm getting a WrongClassException when Automobile is concrete and using the joined subclass strategy, trying to persist a set with a single Truck on it.

Sorry for my bad English,
Thank you


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.