JPA Hibernate Call Postgres Function Void Return MappingException:

前端 未结 7 2083
不知归路
不知归路 2020-12-31 11:38

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

7条回答
  •  不思量自难忘°
    2020-12-31 12:17

    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();
    }
    

提交回复
热议问题