-->
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: How to pass a parameter type RECORD to a procedure
PostPosted: Mon Nov 23, 2009 1:18 pm 
Newbie

Joined: Tue Nov 10, 2009 4:28 pm
Posts: 1
Hi All,

I have a procedure in Oracle with the following statement:

PROCEDURE PROC_VDN2501
( P_IC_DEVOLUCAO IN VARCHAR2
,P_DT_INCLUSAO_RM_INICIO IN DATE
,P_DT_INCLUSAO_RM_FIM IN DATE
,P_TYPE IN OUT NOCOPY TAB_REQR
,P_CD_SISTEMA OUT NOCOPY VARCHAR2
,P_CD_PROCESSO OUT NOCOPY NUMBER
,P_CD_RETORNO OUT NOCOPY NUMBER
,P_DS_MENSAGEM OUT NOCOPY VARCHAR2
);

The fourth parameter reported was declared in the same package as below:

TYPE TAB_REQR IS TABLE OF TYPVDN_REC_REQR INDEX BY BINARY_INTEGER;

If you look it has a specific type in which it was held also in the same package, as follows:

TYPE TYPVDN_REC_REQR IS RECORD
( ID_EMPRESA REQUISICAO_MATERIAL.ID_EMPRESA%TYPE
,ID_FILIAL REQUISICAO_MATERIAL.ID_FILIAL%TYPE
,IC_FATURA REQUISICAO_MATERIAL.IC_FATURA%TYPE
,NU_PED_CLI REQUISICAO_MATERIAL.NU_PED_CLI%TYPE
,IT_PED_CLI REQUISICAO_MATERIAL.IT_PED_CLI%TYPE );

I wish somebody would help me showing me how do i call the procedure through hibernate using this parameter.

Thank you all.


Top
 Profile  
 
 Post subject: Re: How to pass a parameter type RECORD to a procedure
PostPosted: Mon Dec 21, 2009 4:34 am 
Newbie

Joined: Wed May 09, 2007 5:22 am
Posts: 4
Hi dfsilva, All,

I have kind of similar question:
viewtopic.php?f=1&t=1001289

All suggestions or working good examples are welcome.

Thanks in advance,

Tuno


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.