my package contains the following procedure -->
Package body myNewack as Procedure DisplayEmployees(Emplist OUT refCursor) Is begin open Emplist for select EmpId, FirstName, LastName from employee; end; end myNewPack;
my hbm mapping file contains the following named query -->
<sql-query name="mytestsp" callable="true">
call MYNEWPACK.DISPLAYEMPLOYEES()
</sql-query>
and from .net i'm using the following code to call this procedure
public IList<NhbHelper.Employee> GetEmployees()
{
IList<NhbHelper.Employee> myList;
ISession session = NHibernateHelper.GetCurrentSession();
var query= session.GetNamedQuery("mytestsp");
return query.List<NhbHelper.Employee>();
}
Whenever i'm executing this code i'm getting error "Could not execute query [ call MYNEWPACK.DISPLAYEMPLOYEES()] [SQL:call MYNEWPACK.DISPLAYEMPLOYEES()]"
Kindly help me fix this issue, how can i execute the oracle procedure that returns refcursor