So, you need to write your own JPQL implementation, and then :-) After all, converting JPQL to SQL for RDBMS data storage is a JPQL implementation. Good luck
Of course, you could use an existing JPQL implementation, be it Hibernate or EclipseLink, or DataNucleus ... and since they are all open source, you have to go and delve into your code base.
source share