public String getVersion() {
return (String) em.createNativeQuery("SELECT pkg_deploy.get_current_build FROM dual").getSingleResult();
}
The Sonar complain about not using native queries. In this case, what do I need to change? Should I use JPQL, how?