-->
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: Using sequence-identity for id generation
PostPosted: Mon Oct 31, 2011 5:58 am 
Newbie

Joined: Mon Oct 31, 2011 5:35 am
Posts: 2
Hi,

I'd like to use sequence identity in order to generate object keys. I tried the following configuration and it works :

Code:
@GeneratedValue(generator = "seqGenerator")
@GenericGenerator(name = "seqGenerator", strategy = "sequence-identity", parameters = @Parameter(name = "sequence", value = "my_seq"))


The problem is what I read in the Hibernate documentation :
Quote:
sequence-identity
a specialized sequence generation strategy that utilizes a database sequence for the actual value generation, but combines this with JDBC3 getGeneratedKeys to return the generated identifier value as part of the insert statement execution. This strategy is only supported on Oracle 10g drivers targeted for JDK 1.4. Comments on these insert statements are disabled due to a bug in the Oracle drivers.


Does this mean that sequence-identity should not be used ? If no, which oracle version is compatible with this feature ?

Are there any constraints on the use of this feature ?

Thanks,

William.


Top
 Profile  
 
 Post subject: Re: Using sequence-identity for id generation
PostPosted: Thu Nov 03, 2011 9:33 am 
Newbie

Joined: Mon Oct 31, 2011 5:35 am
Posts: 2
Does anyone use sequence identity ?


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.