-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate and stored proc
PostPosted: Mon Aug 16, 2004 5:59 am 
Newbie

Joined: Mon Aug 16, 2004 5:52 am
Posts: 6
Hi!

I've read some posts about stored procedures in Hibernate.
It seems that this features will be fully supported in the 3.0 release.

Am I right? If yes, do you have any idea of the date it will be available?

Thanks in advance.

Xavier


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 6:02 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
http://www.hibernate.org/200.html

http://www.hibernate.org/187.html

do you need more info?

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 6:09 am 
Newbie

Joined: Mon Aug 16, 2004 5:52 am
Posts: 6
Thanks a lot for your quick answer!

In fact I'm using Hibernate 2.1 on my project and we wanted to centralize database access/calls thanks to Hibernate.

Is it realistic to use it to call stored procedures? I guess we don't have all elements in our version to run them. Otherwise, we thought to call the proc with JDBC through the same connection pool. Do you think it could be a good patch for waiting the 3.0 release?


Xavier


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 7:24 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
Quote:
we thought to call the proc with JDBC through the same connection pool


this can be a good way, what does your stored procedure do?
massive updates? complex queries? both?
you can get the jdbc connection from the hibernate session then use it in jdbc.
Don't forget to discard the hibernate session then (1st level cache can be corrupted because of stored procedure updates) and to manage second level cache if you use it.

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.