-->
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: SessionFactory takes ages to construct
PostPosted: Fri Mar 17, 2006 10:18 am 
Newbie

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 16
All was going reasonably well and then I did some 'harmless' refactoring.
Now my SessionFactory takes about a minute to construct rather than just a few seconds (and I get NonuniqueObjectException, though these may not be related). If I don't add any mapping files to the Configuration it is quick to construct (but obviously not much use).

I recall reading some comment recently along the lines of "if you do X then the SessionFactory construction can take ages" but I cannot remember what X was or where I read this.

Can anyone help!

Thanks
David


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 17, 2006 11:19 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Did you read this:

http://www.hibernate.org/194.html
http://www.hibernate.org/300.html

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 17, 2006 11:22 am 
Newbie

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 16
steckemetz wrote:


Nope! But thanks anyway.
David


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 17, 2006 11:34 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what did you do in this "harmless" refactoring ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 17, 2006 11:39 am 
Newbie

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 16
max wrote:
what did you do in this "harmless" refactoring ?


It turns out that the refactoring was ok but I got myself confused with classes built within the IDE and those built using Ant. Once I realised and fixed this inconsistency I ceased to get these exceptions and slowness.

But, out of curiosity, I would still be interested to know what that "X" was that could cause the SessionFactory construction to take an age.

Thanks
David


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 17, 2006 11:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
described on those wiki links you got earlier

_________________
Max
Don't forget to rate


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.