Hi,
I'm trying to create the hbm files using middlegen, I downloaded the middlegen package and modified the existing build.xml shipped with middlegen (see code block).
When I start the middlegen tool I get the following exception:
build.xml:90: middlegen.MiddlegenException: Couldn't connect to database: Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 26
Don't know what to do with it, please could someone help me out!?
Regards,
dee3lmo.
Code:
<target
name="middlegen"
description="Run Middlegen"
unless="middlegen.skip"
depends="init, check-driver-present, panic-if-driver-not-present"
>
<mkdir dir="${build.gen-src.dir}"/>
<taskdef
name="middlegen"
classname="middlegen.MiddlegenTask"
classpathref="lib.class.path"
/>
<middlegen
appname="${name}"
gui="${gui}"
databaseurl="${database.url}"
driver="${database.driver}"
username="${database.userid}"
password="${database.password}"
>
<hibernate
destination="${build.gen-src.dir}"
package="${name}.hibernate"
javaTypeMapper="middlegen.plugins.hibernate.HibernateJavaTypeMapper"
/>
</middlegen>
</target>