-->
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: org.hibernate.id.enhanced.TableGenerator and stored proc
PostPosted: Thu Jul 02, 2009 5:43 am 
Newbie

Joined: Thu Jul 02, 2009 5:23 am
Posts: 2
Hi,

I am using the org.hibernate.id.enhanced.TableGenerator using the pooled optimizer with an increment size of 100 to improve the performance of doing inserts. Originally I was using identity column for the id and while it worked there seemed to be an additional select being performed to get the id value and set it in the object. This also prevents the use of batching which I want to still use. The identity generator works fine in hibernate but I have the problem where I have stored procs that also need to insert into the same table. How can I insert from an external process to hibernate and stilll maintain that the id's will be unique?

Regards


Top
 Profile  
 
 Post subject: Re: org.hibernate.id.enhanced.TableGenerator and stored proc
PostPosted: Fri Jul 03, 2009 9:32 am 
Newbie

Joined: Thu Jul 02, 2009 5:23 am
Posts: 2
Anyone have any ideas? Is it even possible to do?


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.