Possible duplicate of [How to get the JPA generated SQL query?](https://stackoverflow.com/questions/14358934/how-to-get-the-jpa-generated-sql-query)
– AcewinMar 29 '18 at 16:39
I have not tried this, but you can look into JPA Criteria API https://antoniogoncalves.org/2012/05/24/how-to-get-the-jpqlsql-string-from-a-criteriaquery-in-jpa/
– AcewinMar 29 '18 at 16:46
@Acewin its giving only the JPQL. Also tried with EclipseLink but its giving error.
– KrishMar 29 '18 at 17:58