If you have a problem with some implementation of JPA it's better to post your question on StackOverflow with appropriate tags or in some other place where your question will be visible by many people familiar with JPA, Hibernate and other related stuff.
I have no idea how to while a correct query with API that you use. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/ca12190f-a835-4295-a3f8-1675ab64b061%40googlegroups.com.