-->
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: StatelessSession connection() method NOT deprecated???
PostPosted: Sat Feb 28, 2009 9:51 pm 
Newbie

Joined: Tue Jan 27, 2009 12:43 pm
Posts: 16
Hi. I have a stored procedure that I need to call from Hibernate. I read many posts regarding the restrictions involved. I read about the hack that uses session.connection() with a CallableStatement, but the session.connection() method is deprecated, and I don't like the idea of using it.

On the other hand, StatelessSession connection() is *not* deprecated. Why isn't it, are there plans for it to be deprecated in the future, and what is the difference between the two .connection() methods of Session and StatelessSession?

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2009 10:00 pm 
Newbie

Joined: Tue Jan 27, 2009 12:43 pm
Posts: 16
BTW - I did look up StatelessSession in Gavin King's book. It says at the end of the section on page 540 "Good use cases for a StatelessSession are rare; ...".

Would a stored procedure call be one of those rare cases to break out and use it?

Thanks.


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.