Hallo,
can you please explain how you configure this DriverconnectionManager in the ant task. I use ant inside maven build and cannot get it to export the schema to the Database. When I set export=true it overwrites the output files and they are empty after that. Where should the DB Information(url, username, password, DriverClass, Dialect) be? This information is in my configuration in the persistence.xml.
Here is my ant task in the pom.xml:
Code:
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" />
<hibernatetool destdir="./src/main/resources/Hypersonic/default">
<jpaconfiguration persistenceunit="persistenceUnitHypersonic" />
<classpath>
<path location="./target/classes/Hypersonic/" />
</classpath>
<!-- list exporters here -->
<hbm2ddl export="false" update="false" drop="true"
create="false" outputfilename="drop.sql" delimiter=";"
format="true" haltonerror="false">
</hbm2ddl>
<hbm2ddl export="true" update="false" drop="false"
create="true" outputfilename="create.sql" delimiter=";"
format="true" haltonerror="false">
</hbm2ddl>
</hibernatetool>
Thanks in advice.
Anton