I used Reverse Engineering of Hibernate Tools with Ant task.
I have problem with hbm2java when I run, it's very long.
My database have 137 tables. Log in console stop on
"INFO: Named query checking : enabled" and it take more than 1 minute to continu.
If it's to check named query very long, can I disabled it and how ?
thanks Laurent
AntTask
Code:
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="toolslib" />
<hibernatetool destdir="${src.dir}">
<jdbcconfiguration propertyfile="./conf/hibernate.properties" revengfile="./conf/hibernate.reveng.xml" reversestrategy="com.apo.hibernate.tool.CustomRevengStrategy" packagename="com.apo.server.core.persistance" detectmanytomany="false"/>
<hbm2java jdk5="true" ejb3="true"/>
</hibernatetool>
hibernate.properties
Code:
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class=org.postgresql.Driver
hibernate.connection.url=jdbc:postgresql://192.168.1.42:5432/lab4_dev
hibernate.connection.username=postgres
hibernate.connection.password=postgres
hibernate.connection.pool_size=10
#hibernate.transaction.factory_class=org.hibernate.transaction.JTATransactionFactory
hibernate.format_sql=true
hibernate.default_schema=public