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
Dude! It's as easy as quoting the function name. Like so:
public void runRequestCleanup() { String queryString = "SELECT \"a_function_that_hibernate_chokes_on\"()"; Query query = em.createNativeQuery(queryString); Object result = query.getSingleResult(); }