How to get JPQL query string from JPA API

Solution Verified - Updated -

Issue

  • How to get JPQL query string from JPA API?
  • How to enable logging JPQL query string?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
  • Hibernate ORM 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In