-->
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.  [ 6 posts ] 
Author Message
 Post subject: Mapping *.hbm.xml is so slow at starting.. why ?
PostPosted: Thu Apr 21, 2005 8:41 am 
Beginner
Beginner

Joined: Wed May 12, 2004 4:27 am
Posts: 21
Location: Montreux (CH)
Hello,

my classes are very small.... 5 properties, 2 queries, that's all !!! (no link between them)...

why is it so slow to start ? it takes 3 minutes for 100-200 classes ;o(

what does it do to need 500ms / file ??

Code:
2005-04-21 14:39:31,031 INFO  [org.hibernate.cfg.HbmBinder] Mapping class: testmapping.application.customers.HibCustomer -> customers
2005-04-21 14:39:31,046 INFO  [org.hibernate.cfg.Configuration] Found mapping documents in jar: utopix/centrix/mapping/application/documents/HibDocument.hbm.xml
2005-04-21 14:39:32,890 INFO  [org.hibernate.cfg.HbmBinder] Mapping class: testmapping.application.documents.HibDocument -> documents
2005-04-21 14:39:32,890 INFO  [org.hibernate.cfg.Configuration] Found mapping documents in jar: utopix/centrix/mapping/application/documents/HibDocumentMap.hbm.xml
2005-04-21 14:39:34,468 INFO  [org.hibernate.cfg.HbmBinder] Mapping class: testmapping.application.documents.HibDocumentMap -> document_map
2005-04-21 14:39:34,468 INFO  [org.hibernate.cfg.Configuration] Found mapping documents in jar: utopix/centrix/mapping/application/documents/HibDocumentMapSystemfiles.hbm.xml


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 21, 2005 8:51 am 
Beginner
Beginner

Joined: Wed May 12, 2004 4:27 am
Posts: 21
Location: Montreux (CH)
I forgot to say : Hibernate3.0 and 3.0.1 ! same problem..


Top
 Profile  
 
 Post subject: Update the mapping files
PostPosted: Thu Apr 21, 2005 8:54 am 
Newbie

Joined: Mon Apr 18, 2005 3:21 am
Posts: 5
Change the DTD reference in the mapping files to refer to the hibernate 3 DTD instead.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 21, 2005 9:01 am 
Beginner
Beginner

Joined: Wed May 12, 2004 4:27 am
Posts: 21
Location: Montreux (CH)
instead of changing them manually... do you know how to do this with xdoclet ?? (ideally with latest jboss plugins) ??

thank you...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 21, 2005 9:18 am 
Beginner
Beginner

Joined: Wed May 12, 2004 4:27 am
Posts: 21
Location: Montreux (CH)
THANK YOU !

it's fast now :-)

I just have to find how to modify jboss plugins... so that it's automatically generated...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 21, 2005 9:42 am 
Beginner
Beginner

Joined: Wed May 12, 2004 4:27 am
Posts: 21
Location: Montreux (CH)
for those who are interesting, I did something "stupid" but it works as I wanted :-)

I've edited the jar file
xdoclet-hibernate**.jar from jboss

the file hibernate.xdt and force to be hibernate 3.0 by changing

Code:

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


thank you for your help !


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.