-->
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: DB2 iSeries can't get metadata using update
PostPosted: Tue Feb 07, 2006 5:22 pm 
Newbie

Joined: Tue Feb 07, 2006 5:07 pm
Posts: 5
Location: Dublin, OH
I'm using hibernate 3.0.5 and my code tests successfully with Oracle 8i, 9i, 10g, MySQL, MSSQL, and DB2 on Unix - but when connecting to DB2 on iSeries, I get the following error message:
could not get database metadata
SQL Error Code: -204
SQL State: 42704
com.ibm.db2.jdbc.app.DB2DBException: SYSSEQUENCES in SYSIBM type *FILE not found.

The only way I've been able to create a table is if i use hbm2ddl.auto=create but we need it to work with "update". I've tried setting default_schema and default_catalog properties with no success. The following is the hibernate mapping being used. I have a rather long debug trace that I could provide but is too long to post here. Need help!!
Gary

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class entity-name="AAGary" node="AAGary" table="AAGary">
<cache usage="read-write"/>
<id name="oid" node="@oid" column="AAGary_oid" type="string" length="32">
<generator class="uuid"/>
</id>
</class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 11:07 am 
Newbie

Joined: Tue Feb 07, 2006 5:07 pm
Posts: 5
Location: Dublin, OH
Never mind - This all worked once I downloaded and used hibernate3.jar version 3.1.2


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.