Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cursor and Hibernate

 
Sonal Suryawanshi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,

I am quite new to Hibernate. Can you please tell me how to use cursor in Hibernate?
I mean, how to write query for creating/deleting cursor in Database using Hibernate?
Many thanks
 
Sandeep Awasthi
Ranch Hand
Posts: 597
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
query for creating/deleting cursor in Database using Hibernate

Do you mean opening and closing cursors?
 
Sonal Suryawanshi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
Sandeep Awasthi
Ranch Hand
Posts: 597
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want to do that, hibernate will do it for you behind the scene.

The only way you can do is through stored procedure and call that stored procedure from hibernate.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic