Issue
I am using hibernate with JPA annotations and Jboss transaction manager I build the session factory open up a session and create a query when i use query.list it always returns me an empty list
any idea?
Solution
Few suggestions:
Enable configuration parameter show-sql
in persistence.xml
. Try this, i.e.
<property name="hibernate.show.sql" value="true" />
Furthermore, it is better to format that using,
<property name="hibernate.format_sql" value="true" />
And then try to run the same query in some SQL Client.
Answered By - Adeel Ansari
Answer Checked By - Marilyn (JavaFixing Volunteer)