I need to call a stored procedure using JPA and found this article:
http://www.oracle.com/technology/pub/articles/vasiliev-jpql.html
which explains how to use EntityManager.createNativeQuery. However, the example actually calls a function that has a return argument. I've tried searching for an example of calling a stored procedure that doesn't have a return, but haven't been able to find anything.
Can I use createNativeQuery to call a procedure? Or does the procedure need to be modified to be a function (perhaps returns a success/failure result)?
Thanks!