-->
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.  [ 3 posts ] 
Author Message
 Post subject: Refresh a one-to-may relation after inserting new entity.
PostPosted: Tue Jul 25, 2006 3:30 pm 
Newbie

Joined: Sun May 28, 2006 7:42 pm
Posts: 19
Location: Italy
When i save a new entity in db, the generatet identificator (guid.comb), is received and the container control is updated.
Now when the entity is saved in the db, a trigger is called by sql server and generate two record in a related table.
How can i, automatically receive new records ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 5:52 am 
Senior
Senior

Joined: Wed Jun 15, 2005 4:17 am
Posts: 156
you can't do that automatically. But you can have code in your save method for that object that refreshes the collection so that the newly created objects are loaded.

HTH,
Radu


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 6:01 pm 
Newbie

Joined: Sun May 28, 2006 7:42 pm
Posts: 19
Location: Italy
radu wrote:
you can't do that automatically. But you can have code in your save method for that object that refreshes the collection so that the newly created objects are loaded.

HTH,
Radu


OK. Thanks


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

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.