-->
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.  [ 2 posts ] 
Author Message
 Post subject: SQL server identity and master-detail
PostPosted: Thu Aug 19, 2004 4:53 pm 
Newbie

Joined: Wed Aug 11, 2004 4:48 pm
Posts: 12
How to deal with subj?

Identity is available after insert only, so in order to insert details, i need apply master previously.

But i have already set details, because value object returned from UI is populated! So, calling save on it will produce exception.

If there any elegant way to handle that problem?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 19, 2004 11:09 pm 
Newbie

Joined: Wed Aug 11, 2004 4:48 pm
Posts: 12
How about dynamic changing of association?
It it thread safe?

What i wanna do is, temporary delete cascade from master, save it, then restore it back, and save again. At this point master will have id.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.