-->
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: Collections mapping question
PostPosted: Thu Aug 19, 2004 12:16 am 
Newbie

Joined: Wed Aug 18, 2004 10:52 pm
Posts: 1
As part of a skinny DAO framework built on top of Hibernate, I'm trying to automate some of the way bi-directional one-to-many relationships are handled. Specifically, upon saving a new child object, it would automatically add it to the relevant collection(s) of its parent object(s). To keep a lot of cruft out my POJOs, I'd like to discover (child property) --> (parent collection) mappings at runtime.

After winding my way through the javadocs, the way from ClassMetadata to the mapping I want seems kinda murky, passing through PersistentCollectionType and possibly several other classes along the way.

Is there an easy way to do this kind of thing?


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.