query « Test « JPA Q&A





1. Hibernate executed queries and testing    stackoverflow.com

Is there a way to find out what queries are executed with hibernate? I would like to write a performance test to ensure only a specific query and amount are run. Update: ...

2. Parameter named query testing with mockito    stackoverflow.com

I want to write junit test for my dao, but i have a problem. The method I want to test:

 public boolean boo(final String param) {
   ...

3. Simple Query ? Hibernate to the test !!!    forum.hibernate.org

Hello! Would like to do a VERY simple query like that: Table ACCOUNT which is a mapped class, select sum(debit) - sum(credit) from account where clientId = ? which will give me the account balance.... any idea, shortest way possible ??? would be dispointed in Hibernate I could not do that... Thank you!