-->
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: Beginner Question - Assign Key without Persisting
PostPosted: Fri Apr 02, 2010 3:08 pm 
Newbie

Joined: Fri Apr 02, 2010 2:55 pm
Posts: 1
In my current project, I create new objects, and the process of creating them compares them to a list of previous objects (based on object key).
However, I do not have the time to check every item in the database when I create new objects in order to assign a unique key, and I need to create several objects (including several key comparisons on the new objects) before I have a chance to merge anything. [The database is set to auto-assign key values when objects are persisted.]

Is there a command to assign a unique key value to an object without actually persisting it?


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.