-->
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: Saving a root object, deep nodes of the tree doesn't get ID
PostPosted: Fri Jul 27, 2007 11:40 am 
Newbie

Joined: Fri Apr 15, 2005 9:22 am
Posts: 11
I'm creating a hierarchy of objects where Root object is Person that has collections of phones, addresses, and so on.

Code:
      <set name="addresses" inverse="true" cascade="all" access="field">
         <key column="ID_person" />
         <one-to-many class="xxx.Address" />
      </set>


After doing session.save(persona);
When I iterare over those collections, and for example get an Address, its ID attribute is NULL.
Other collections with the SAME description as above in configuration, work !

Nothing in the code has been changed, this usually worked out, all of a sudden started working this way.

Any ideas ?
Thanks.

Already FIXED sorry


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.