I'd like to manage my roles from application. But when I use
entityManager.createNativeQuery(String.format("create USER %1$s nologin;",tenantId)).getResultList();
The Query is beeing executed but an exception comes up.
javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not extract ResultSet
Is there an appropriate way to execute queries like this from Java ?
Aucun commentaire:
Enregistrer un commentaire