Hibernate (Java) Question:

How do you invoke Stored Procedures?

Tweet Share WhatsApp

Answer:

<sql-query name=”selectAllEmployees_SP” callable=”true”>
<return alias=”emp” class=”employee”>
<return-property name=”empid” column=”EMP_ID”/>
<return-property name=”name” column=”EMP_NAME”/>
<return-property name=”address” column=”EMP_ADDRESS”/>
{ ? = call selectAllEmployees() }
</return>
</sql-query>

Download Hibernate PDF Read All 52 Hibernate Questions
Previous QuestionNext Question
What do you mean by Named - SQL query?Explain Criteria API?