-->
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: Stored Procedures
PostPosted: Mon Dec 27, 2004 10:14 am 
Newbie

Joined: Mon Dec 27, 2004 10:06 am
Posts: 2
Hibernate version: 3.0 beta

Hi I'm currently working on Hibernate 3.0 beta version. I've a problem implementing Stored Procedures. I'm unable to give mapping for a stored procedure which retrieves data.Any help wud be appreciated...Any example cud be appreciated...Thanks in advance....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 10:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
we don't have SP query support yet

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 11:59 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
may be the cusomt SQL feature helps

HTH
Ernst


Top
 Profile  
 
 Post subject: Stored Procedures in Hibernate
PostPosted: Tue Dec 28, 2004 2:22 am 
Newbie

Joined: Mon Dec 27, 2004 10:06 am
Posts: 2
ernst_pluess wrote:
may be the cusomt SQL feature helps

HTH
Ernst


I've seen the code something like this...

<sql-insert callable="true">{call createPatient (?, ?, ?, ?)}</sql-insert>

which are custom sql statements...is there any other way for calling stored proce...vth the above syntax we can only insert/update/delete..but I've a SP which retrieves data...how can i do that? plz help...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 28, 2004 3:19 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
read my last answer - it says it all ,)

We don't have SP query support yet

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Stored Procedures in Hibernate
PostPosted: Tue Dec 28, 2004 3:20 am 
Beginner
Beginner

Joined: Wed Jul 21, 2004 7:48 am
Posts: 21
madhavi wrote:
ernst_pluess wrote:
may be the cusomt SQL feature helps

HTH
Ernst


I've seen the code something like this...

<sql-insert callable="true">{call createPatient (?, ?, ?, ?)}</sql-insert>

which are custom sql statements...is there any other way for calling stored proce...vth the above syntax we can only insert/update/delete..but I've a SP which retrieves data...how can i do that? plz help...




Hi Madhavi,
You can do one thing,
create a temporary table (using sql statement) which holds the columns returned by the SP.and call SP
for eg
create table temp column ....
insert into temp execute your SP

then when you call this you will be getting a List of that temp table instances


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.