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.