The oqt-maven-plugin allows automatic JPQL to SQLquery translation in a maven project. The result is outputted as standard maven report.
Additional goals exist for simple JPQL validation.
The GroovyStAr ("Groovy Static Analyzer") project describes a new extensible SCA tool for Java and Groovy. The extensibility is reached through a customizable set of Groovy-scripts, each representing a static source code query against the created AST.