-->
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.  [ 3 posts ] 
Author Message
 Post subject: Need help about query with a stored function
PostPosted: Fri Jun 01, 2007 8:32 am 
Newbie

Joined: Fri Jun 01, 2007 8:19 am
Posts: 2
hello guys!!! I'm newbie in hibernate and my english very bad. But I'll try it.

I need run a query with a stored function. The stored function is :

CREATE OR REPLACE FUNCTION Civ_Genera_Xml_PROFE (PID_PROFESIONAL PROFESIONALES.ID_PROFESIONAL%TYPE,
PUSUARIO VARCHAR2,
PCODERROR OUT NUMBER,
PTEXTERROR OUT VARCHAR2
)
RETURN NUMBER
IS


my question is: How I can do to mapping the create query into hibernate?? I see the query has 4 params


I have this code in the mapping document:

<sql-query name="altaProfesionalCivitas" callable="true">
<query-param name="pid_profesional" type="java.lang.Long"/>
<query-param name="pusuario" type="java.lang.String"/>
<query-param name="pcoderror" type="java.lang.Long"/>
<query-param name="ptexterror" type="java.lang.String"/>
{ call Civ_Genera_Xml_Profe() }
</sql-query>

but I can't if it is correct...

And finally, I can't how is the code into the Dao, how call the function mapped?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 04, 2007 3:55 am 
Newbie

Joined: Fri Jun 01, 2007 8:19 am
Posts: 2
nobody help me? :-(


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 9:32 pm 
Beginner
Beginner

Joined: Mon Jun 25, 2007 11:57 pm
Posts: 28
Maybe this might help, see my third post here:

http://forum.hibernate.org/viewtopic.php?t=976888


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