JPA Hibernate Call Postgres Function Void Return MappingException:

前端 未结 7 2038
不知归路
不知归路 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:22

    This could be a hack, but it worked for me and is pretty simple. Just change the query to:

    SELECT count(*) FROM your_function();
    

    Now it returns a proper integer and hibernate is happy.

提交回复
热议问题