-->
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: Question with id generators?
PostPosted: Fri May 19, 2006 4:41 pm 
Newbie

Joined: Wed Oct 19, 2005 10:52 am
Posts: 2
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1

Mapping documents:

<id name="itemId" type="long"
column="ITEM_ID">

</id>

I am using default id generator 'assigned'.

Name and version of the database you are using:

Oracle 9




I am using the default id generation mechanism and setting the id myself to the Item Object before saving it. But, the actual id which is getting inserted to the database is totally different?

Is there something else am I missing, that I should have configured?

Thanks

tester


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 20, 2006 1:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Using assigned means there is no generator thus the value will not be changed. You have not shown enough information to determine if the maping is correct. I am assuming you don't have database triggers that might be changing it (which would be bad).


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.