ContactUs

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

How can we invoke stored procedures in hibernate?

In hibernate we can execute stored procedures using code as below:

 

<sql-query name="getStudents" callable="true">

  <return alias="st" class="Student">

    <return-property name="std_id" column="STD_ID"/>

    <return-property name="s_name" column="STD_NAME"/>

    <return-property name="s_dept" column="STD_DEPARTMENT"/>

     { ? = call selectStudents() }

  </return>

 </sql-query>

Related Posts Plugin for WordPress, Blogger...
Flag Counter