Thread:
 Middlegen and DB2 !!! 
 ChrisR   11 Mar 2004, 16:15 
 Re: Middlegen and DB2 !!! 
 cpalit   18 Mar 2004, 01:01 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: cpalit (18 Mar 2004, 01:01) Replies: 0, Views: 37463
Subject: Re: Middlegen and DB2 !!!
There is one other thing to keep in mind with the Hibernate plugin for 
Middlegen. In the build.xml file, on roughly line 145, in 
the "middlegen" target, you may need to modify these lines:
  schema="${database.schema}"
  catalog="${database.catalog}"

I had to delete the "catalog=..." line before I could get things 
working with a DB2400 database. It seems that even if this property is 
empty, passing it as a parameter may cause an error that middlegen 
cannot find any tables. (The forums mention you may need to remove one 
or both the lines to get things working). Beyond following Chris' 
suggestion, adding a few "<table..." tags and tweaking the default 
generated package names, it seems to be working for me.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]