-->
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: Autoincrement in iSeries V5R4 - Urgent !!!
PostPosted: Fri Nov 02, 2007 1:53 am 
Newbie

Joined: Fri Nov 02, 2007 1:09 am
Posts: 2
Hi,

I am facing problem on iSeries using autoincrement columns.

Version(s)
Hibernate : 3.0
iSeries : V5R4

Problem
If I execute the INSERT SQL on table having autoincrement column, then its working fine. But when I am trying to insert record into the same table using Hibernate, I am getting following error.


[10/31/07 9:27:41:600 UTC] 0000002a JDBCException W org.apache.commons.logging.impl.Jdk14Logger warn SQL Error: -99999, SQLState: IM001
[10/31/07 9:27:41:610 UTC] 0000002a JDBCException E org.apache.commons.logging.impl.Jdk14Logger error The driver does not support this function.


So far I have tried following dialect :-

1. org.hibernate.dialect.DB2Dialect
2. org.hibernate.dialect.DB2400Dialect
3. net.sf.hibernate.dialect.DB2400V5R2Dialect

Please help me in resolving this problem. Thanks in advance.

- Abhijeet


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 02, 2007 3:57 am 
Newbie

Joined: Fri Nov 02, 2007 1:09 am
Posts: 2
Hi,

In this forum, I found that same error was already discussed on http://forum.hibernate.org/viewtopic.ph ... ht=iseries

It says that I'm trying to insert a simple record into a table with an identity field.
It is working currently with Hibernate 3.0 and I'm trying move to 3.1.3 but it crashes.


I am also using Hibernate 3.1.4

So I would like like to know if I use Hibernate 3.0, then would this problem be solved? or do I need to use particular dialect or any other change is required?

Please someone shed some light on this.

Thanks,
Abhijeet


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.