I have a problem where I am getting an: org.hibernate.MappingException: No Dialect mapping for JDBC type: 1111 when trying to call a postgres function using JPA cre
For future visitors of this issue, a cast would have worked too. posted on this thread as well
public void runRequestCleanup() { String queryString = "SELECT cast(a_function_that_hibernate_chokes_on() as text)"; Query query = em.createNativeQuery(queryString); query.getSingleResult(); }