-->
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: Hibernate breaks in Mainframe DB2
PostPosted: Fri Apr 20, 2007 8:57 am 
Beginner
Beginner

Joined: Wed Feb 14, 2007 10:43 am
Posts: 21
We were using Hibernate with DB2 on Linux. And things were fine. We switched the backend database to DB2 on Mainframe. And things started to break. For eg. we started getting this exceptions:

org.hibernate.util.JDBCExceptionReporter logExceptions SQL Error: -142, SQLState: 42612

org.hibernate.util.JDBCExceptionReporter logExceptions SQL Error: -516, SQLState: 2650

org.hibernate.util.JDBCExceptionReporter logExceptions SQL Error: -514, SQLState: 26501

This broke in a simple insert (below is Hibernate generated query).

insert into DB2TEST.ABC(KEY, USER_ID, USER_ID, DATE_ENTERED, DATE_UPDATED, SOME_KEY) values (?, ?, ?, ?, ?, default)

Copied the query in DB Visualizer (same JDBC drivers), and it runs fine. So what could be the problem?


Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.2

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


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.