I am new to JPA, I used to used prepared statement in JDBC. Is there alternative to be used within JPA ? as there is a query which I call frequently
see this for info about prepared statment http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html
thanks in advance,,,
The JPA way is EntityManager#createQuery()
with named parameters in JPQL (examples in this chapter).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With