HIBERNATE JBoss.org
 |  Register  | 
     
News 
About 
   Feature List 
   Road Map 
Documentation 
   Related Projects 
   External Documentation 
Download 
Forum & Mailinglists 
Support & Training 
JIRA Issue Tracking
Wiki Community Area


Hibernate Public Training Courses


Get Hibernate in Action eBook!


JavaWorld 2003 Finalist


Jolt Award 2004 Winner
      
Documentation > Community Area > Middlegen for Hibernate > Comments > Re: Middlegen and DB2 !!!


Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
Subject: Re: Middlegen and DB2 !!! 18 Mar 2004, 01:01
From: cpalit Replies: 0, Views: 343
 
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.
 

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

coWiki