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? |