|
For an update from a former hibernate version you might get a lot of "WARN : org.hibernate.hql.internal.ast.HqlSqlWalker - [DEPRECATION] Encountered positional parameter near line.." warnings. Unfortunately there is no way to find out what the query is and where the query is located in the code. The code in HqlSqlWalker does output line and position of an query not revealed:
LOG.warnf( "[DEPRECATION] Encountered positional parameter near line %s, column %s. Positional parameter " + "are considered deprecated; use named parameters or JPA-style positional parameters instead.", inputNode.getLine(), inputNode.getColumn() );
It would be helpful if it 1) either would be possible to display the query in question or 2) to create a stacktrace at this point. Linenumber and column are not sufficient if you suppress everything else.
A way to hook a query listener in on demand that gets some diagnostic information (the query, maybe parsing information, warnings, processing time, and so on) would be great but of course that would be just nice to have.
|