-->
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: Question re: Hibernate, Static SQL, and Session Beans
PostPosted: Tue Feb 06, 2007 5:48 pm 
Newbie

Joined: Tue Feb 06, 2007 12:26 am
Posts: 1
Location: Vienna, VA
Hi (I am new to Hibernate),

It appears that Hibernate generates static SQL at startup, but is static SQL also used when Hibernate is used by a session bean? If so, how?

I thought that within a session bean, one gets a connection from a connection pool and then commits are executed on that connection (and possibly others) when the session bean's method (and possibly caller methods) completes, so it would be impossible to assume that a statically prepared JDBC statement is bound to any retrieved connection object. Am I missing something big here, or is Hibernate not using this model?

Sorry for the broad question, but I would be most appreciative for any explanation that anyone might share.

Thanks!

Stuart


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 07, 2007 9:28 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
SQL generation != prepare statement

_________________
Emmanuel


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.