Changing the JavaDoc will not do much because the Session inherits from the JPA EntityManager and the createNativeQuery definition and JavaDoc is almost identical: https://docs.oracle.com/javaee/7/api/javax/persistence/EntityManager.html#createNativeQuery-java.lang.String-java.lang.Class- However, allowing scalar results via native SQL queries could be worth adding. |