I am developing application which is running on WebSphere Server version 8.5.5. The application has database layer which calls 3 MS SQL function with parameters. SQL function is composed from two (max. three) join tables.
What is better?
Can I use SQL function (Java CallableStatement)?
Can I white SQL SELECT(NamedQuery) direct in JPA 2.0 and do not use sql function?
I think that use SQL SELECT in JPA is clearer and cleaner. What is faster?
I think that database query(function or jpa select) is performed direct in database. It is true?
I tried JPA 2.1. on WebSphere for calling function and it was unsuccessful.
Thank you very much.