public class SQLExtractor extends Object
SQLExtractor
allows you to extract the
underlying SQL query generated by a JPQL or JPA Criteria API query.
For more details about how to use it, check out this article on vladmihalcea.com.
Modifier | Constructor and Description |
---|---|
protected |
SQLExtractor() |
Modifier and Type | Method and Description |
---|---|
static String |
from(javax.persistence.Query query)
Get the underlying SQL generated by the provided JPA query.
|
public static String from(javax.persistence.Query query)
query
- JPA queryCopyright © 2022. All rights reserved.