-1

Am new to hibernate. Am trying to call a oracle stored procedure through Hibernate. Can I get some steps to follow to call a procedure through Hibernate.

Thanks in advance.

Kaushi
  • 198
  • 3
  • 8
  • 20
  • http://stackoverflow.com/questions/21934310/how-to-call-oracle-stored-procedure-using-hibernate – dReAmEr Sep 18 '14 at 18:00
  • http://stackoverflow.com/questions/14335939/how-to-call-oracle-function-or-procedure-using-hibernate-4-entitymanager-or-jp – dReAmEr Sep 18 '14 at 18:01

1 Answers1

1

Starting from JPA 2.1 You can use @NamedStoredProcedureQuery annotation. This annotation can be specified on an entity or mapped superclass

@NamedStoredProcedureQuery(name="fooStoredProcedure", procedureName="someProcedureName")
sol4me
  • 15,233
  • 5
  • 34
  • 34