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-hibernate-r2


Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
Subject: Re: middlegen-hibernate-r2 08 May 2004, 02:56
From: srirang Replies: 2, Views: 327
 
I can't seem to get middlegen-hibernate-r4 to work with db2. My
build.xml has...

      <middlegen
         appname="${name}"
         prefsdir="${src.dir}"
         gui="${gui}"
         databaseurl="${database.url}"
         initialContextFactory="${java.naming.factory.initial}"
         providerURL="${java.naming.provider.url}"
         datasourceJNDIName="${datasource.jndi.name}"
         driver="${database.driver}"
         username="${database.userid}"
         password="${database.password}"
         schema="${database.schema}"
         catalog="${database.catalog}"
      >

As suggested in the previous posts, I tried removing the catalog, then
schema, then both. No luck. If I remove both, I can see it scanning each
table and shows a message saying that it did not generate any mapping
since the schema is not specified. Like...


[middlegen] (middlegen.MiddlegenPopulator        929 ) The table named
EXPENSETYPE was found in the schema named "DBA". However, Middlegen was
not configured to look for tables in a specific schema. You should
consider specifying schema="DBA" in the middlegen task.


But if I specify schema as "DBA", I get 

Middlegen successfully connected to the database, but couldn't find any
tables. Perhaps the specified schema or catalog is wrong? -Or maybe
there aren't any tables in the database at all?
 

Thread:
 middlegen-hibernate-r2 
 Acco Lade   02 Apr 2004, 09:37 
 Re: middlegen-hibernate-r2 
 Acco Lade   02 Apr 2004, 09:39 
 Re: middlegen-hibernate-r2 
 kas   04 May 2004, 06:10 
 Re: middlegen-hibernate-r2 
 srirang   08 May 2004, 02:56 
 Re: middlegen-hibernate-r2 
 david   29 May 2004, 13:35 
 Re: middlegen-hibernate-r2 
 dfreire   22 Jun 2004, 20:25 
      

coWiki