When calling Oracle stored procedure with Custom Type as parameter , NHibernate is throwing exception. where as with MS SQL Server 2008 it is working.

Description

Please check the attached Exception while calling Oracle Stored Procedure .

Class which implement IType

Type defined in Oracle

create or replace
TYPE employeeType AS OBJECT (employeeId INT, employeeName VARCHAR2 (50));
***************
create or replace
TYPE TESTTYPE AS TABLE OF EMPLOYEETYPE;

Stored Procedure

create or replace PROCEDURE TESTCUSTOMEMPLOYEE (PARAM1 OUT SYS_REFCURSOR,PARAM IN TESTTYPE) IS
BEGIN
open PARAM1 for SELECT EMP_ID,EMP_NAME,EMP_PASSWORD,TEAM_ASSOCIATED_WITH,IS_CAPTAIN,NO_OF_MOM,BALANCE FROM employee;
END;

Environment

None

Attachments

1

Activity

Anupam Mishra 
May 19, 2011 at 11:52 PM

Please change the priority to Major

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created May 18, 2011 at 10:34 PM
Updated September 9, 2014 at 12:56 PM
Who's Looking?