-->
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: EntityManagerFactory / Prepared Statements
PostPosted: Mon Nov 05, 2007 1:44 pm 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
Hi,
when an EntityManagerFactory is created, the classpath is scanned for all relevant entities. All relevant prepared statements are then created.

Is there anyway of delaying the creation of any of these prepared statements?

Reason I ask is because if you have a large domain model e.g. 500 entities, the EntityManagerFactory creation time can be quite long.

Kind Rgds


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 05, 2007 6:18 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Not at the moment unfortunately.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 06, 2007 7:47 am 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
ok, thanks for getting back to me.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 06, 2007 10:43 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Actually, I don't think Hibernate create the preparestatements in advance, it certainly prepare the SQL string in advance though

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 06, 2007 11:30 am 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
That's interesting. I suppose from the application point of view there is still a little bit of overhead in creating the strings. Anymore details on this would be great. Also if the hibernate team have any plans for adding any configuration options it would be great if you let us know.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 06, 2007 1:45 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Probably in 4.0, not before

_________________
Emmanuel


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.