I am using Hibernate 4.0
I have method in my DAO class like the following where method return Entity class Employees
.
I am calling an Oracle function which returns sys_refcursor
. How can I return entityManager.createNamedQuery
in my below method?
Any help is highly appreciated.
@Override
public Employees getEmployeeRecords(String employeeNumber) {
<??> = entityManager.createNamedQuery("myfunction");
return <??>;
}