-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: ant target very slow after updating to hibernate 3
PostPosted: Mon May 02, 2005 10:31 am 
Beginner
Beginner

Joined: Tue Feb 15, 2005 8:14 am
Posts: 32
I have this target in my build.xml :

<target name="init-db">
<taskdef name="schemaexport" classname="org.hibernate.tool.hbm2ddl.SchemaExportTask" classpathref="project.class.path" />
<schemaexport config="../${build.hibernate.dir}/hibernate.cfg.xml" delimiter=";" drop="false" output="schema.sql" quiet="true" text="true">
<fileset dir="${build.hibernate.dir}">
<exclude name="**/*.hbm.xml" />
</fileset>
</schemaexport>
</echo>
</target>

after updating from hibernate 2 to hibernate 3 this task is very slow.
Also when I deploy on Tomcat the start is very slow.

Can I do something to make it faster ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2005 2:08 pm 
Regular
Regular

Joined: Tue Oct 26, 2004 3:54 pm
Posts: 60
Probably is because you have mapping files (hbm) which still refer to Hibernate 2.0 DTDs.

Change the DTD reference to

Code:
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >


in your hbm.xml files.


Then DDL schema generation and Tomcat startup will get back their normal speed.


Regards,

Giulio


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.