I have not had to regenerate my hbms in a while, but I made changes to my ddl scripts then regenerated the hbms. Using middlegen-2.0-vo.jar and middlegen-hibernate-plugin-2.0-vo.jar, I get duplicate entries in the hbms which translates into duplicate entries in the POJOs
I read somewhere to fix this just update to middlegen-2.1.jar and middlegen-hibernate-plugin-2.1.jar. Now When I generate the hbms I get the exception listed below that it cannot find the tables.
What am I missing?
Thanks,
Chad
Hibernate version:
2.1.6
Mapping documents:
<target name="generate.hbm" depends="init, clean.hbm, copy.hibernate.config">
<mkdir dir="${hbm.gen.dir}" />
<taskdef name="middlegen" classname="middlegen.MiddlegenTask" classpathref="project.class.path" />
<middlegen appname="vicap"
prefsdir="${hbm.gen.dir}"
databaseurl="${db.url}"
driver="${db.driver}"
username="${db.username}"
password="${db.password}"
schema="${db.schema}">
-- Many table defs --
Full stack trace of any exception that occurs:
middlegen.MiddlegenException: The database
doesn't have any table named ADDENDUM_CATEGORY. Please make sure the table exists. Also note that some databases are case sensitive.
Found the following tables:
----
Name and version of the database you are using:
Oracle 9i
The generated SQL (show_sql=true):
Does not get that far...
Debug level Hibernate log excerpt:
|