I am quiet new to Hibernate and JPA. I started hibernate before but left it because of other demands.
I am currently using JPA and Hibernate as a persistance provider integrated with Spring. I have a question,
that when we write query statements, can we directly write HQL in JPA. Will that work or we have to write
queries specific to JPA.
On note of that, i have another question. What will be best practice, what query language to use, when you are using
JPA but persistance provider as Hibernate? Will HQL be the appropriate choice or JPA own query language?