1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)
 

Recent Questions

!!! Hibernate Frequently Asked Questions !!!

How to Execute Stored procedure in Hibernate ?

!!!Answer!!!- From Technical Expert

Option 1:
Connection con = null;


try {
con = session.connection();

CallableStatement st = con
.prepareCall("{call your_sp(?,?)}");
st.registerOutParameter(2, Types.INTEGER);
st.setString(1, "some_Seq");

st.executeUpdate();

Option 2:
<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>

code :

SQLQuery sq = (SQLQuery) session.getNamedQuery("selectAllEmployees_SP");

List results = sq.list();

Answered By : null Replied Date : Feb 2 2014
Answer :


Answered By : null Replied Date : Feb 2 2014
Answer :


Answered By : null Replied Date : Jan 23 2014
Answer :


Answered By : null Replied Date : Dec 6 2013
Answer :


Answered By : null Replied Date : Dec 3 2013
Answer :


Answered By : null Replied Date : Nov 27 2013
Answer :


Answered By : null Replied Date : Nov 26 2013
Answer :


Answered By : null Replied Date : Nov 3 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Nov 1 2013
Answer :


Answered By : null Replied Date : Oct 14 2013
Answer :


Answered By : null Replied Date : Oct 11 2013
Answer :


Answered By : null Replied Date : Oct 9 2013
Answer :


Answered By : null Replied Date : Feb 5 2014
Answer :


Answered By : null Replied Date : Feb 6 2014
Answer :


Answered By : null Replied Date : Feb 6 2014
Answer :


Answered By : null Replied Date : Apr 7 2014
Answer :


Answered By : null Replied Date : May 12 2014
Answer :


Answered By : null Replied Date : May 12 2014
Answer :


Answered By : null Replied Date : Jul 3 2014
Answer :


Answered By : null Replied Date : Jul 7 2014
Answer :


Answered By : null Replied Date : Aug 2 2014
Answer :


Answered By : null Replied Date : Aug 3 2014
Answer :


Answered By : null Replied Date : Aug 21 2014
Answer :


Answered By : null Replied Date : Sep 28 2014
Answer :


Answered By : null Replied Date : Oct 5 2014
Answer :


Answered By : null Replied Date : Oct 8 2014
Answer :


Answered By : null Replied Date : Oct 23 2014
Answer :


Answered By : null Replied Date : Nov 3 2014
Answer :


Answered By : null Replied Date : Nov 3 2014
Answer :


Answered By : null Replied Date : Nov 4 2014
Answer :


Answered By : null Replied Date : Nov 4 2014
Answer :


Answered By : null Replied Date : Nov 15 2014
Answer :


Answered By : null Replied Date : Nov 23 2014
Answer :


Answered By : null Replied Date : Nov 27 2014
Answer :


Answered By : null Replied Date : Dec 1 2014
Answer :


Answered By : null Replied Date : Dec 10 2014
Answer :


Answered By : jing Replied Date : Feb 10 2015
Answer : chak


Answered By : null Replied Date : Feb 24 2015
Answer :


Answered By : null Replied Date : May 21 2015
Answer :


Answered By : null Replied Date : May 23 2015
Answer :


Answered By : null Replied Date : May 25 2015
Answer :


Answered By : null Replied Date : Jun 13 2015
Answer :


Answered By : null Replied Date : Sep 15 2015
Answer :


Answered By : null Replied Date : Sep 23 2015
Answer :


Answered By : null Replied Date : Oct 1 2015
Answer :


Answered By : null Replied Date : Jan 26 2016
Answer :


Answered By : null Replied Date : Jan 30 2016
Answer :


Answered By : null Replied Date : Feb 1 2016
Answer :


Answered By : null Replied Date : Feb 7 2016
Answer :


Answered By : null Replied Date : Feb 9 2016
Answer :


Answered By : null Replied Date : Apr 21 2016
Answer :


Answered By : null Replied Date : Jun 13 2016
Answer :


Answered By : null Replied Date : Aug 24 2016
Answer :


Answered By : null Replied Date : Aug 25 2016
Answer :


Answered By : null Replied Date : Sep 29 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Sep 30 2016
Answer :


Answered By : null Replied Date : Jun 19 2017
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

Reviews and Comments


PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2016


About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy