-->
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: Configuration.Configure took 3 seconds
PostPosted: Tue Jun 02, 2009 8:09 am 
Newbie

Joined: Tue Jun 02, 2009 7:08 am
Posts: 2
Hi,

Hibernate took 3 seconds to execute - org.hibernate.cfg.Configuration.Configure("/hibernate.cfg.xml");

Note: 35 mapping entries are there in the file hibernate.cfg.xml.

hibernate.cfg.xml::

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class"> com.mysql.jdbc.Driver </property>
......
......
<mapping resource="orm/City.hbm.xml" />
....
</session-factory>
</hibernate-configuration>

Please let me the know issue

Thanks


Top
 Profile  
 
 Post subject: Re: Configuration.Configure took 3 seconds
PostPosted: Tue Jun 02, 2009 9:46 am 
Beginner
Beginner

Joined: Mon Jun 01, 2009 5:39 am
Posts: 34
3 seconds to parse 35 mappings, checking dependencies, etc, seem a pretty good time to me!


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.