-->
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: Oracle 10g Dialect does not support identity key generation
PostPosted: Tue Feb 08, 2011 12:02 pm 
Newbie

Joined: Wed Jan 05, 2011 3:22 pm
Posts: 13
Im trying to upgrade the Hibernate libraries from 3.x to 3.5.6.

I have a problem running one insert. I have a sequence and Oracle trigger which will use the seq to insert as ID inside the table. And my program is inserting the remaining columns. The issue is similar to below. But I past the original error by changing the property

viewtopic.php?f=1&t=975055&p=2441274#p2441274

use_get_generated_keys to false.

But now im getting the above Dialect error when im inserting a record. My HBM files looks like this

<hibernate-mapping package="com.ncr.passport.audit">

<class name="AuditLog" table="pcwauditlog" lazy="false">
<id name="instanceId" column="id" type="long">
<generator class="identity"/>
</id>
......

I tried changing the dialect from original org.hibernate.dialect.OracleDialect to org.hibernate.dialect.Oracle9Dialect but no change.

Im not sure how it worked in old version with "identity" generator class. I also tried using "select" but no effect.


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.