Hibernate. No Dialect mapping for JDBC type: 1111.
Hello coders!
I’ll try to explain the problem and show my solution to it using Grails code
examples and PostgreSQL. I believe the problem is general for Hibernate and
similar exception can happen with other dialects as well. I’ll try to
demonstrate my solution for PostgreSQL. Maybe it’ll help you.
So, let’s imagine we have code like that:
we will get an exception like this:
If I understand correctly, Hibernate has a problem with recognising the type of
the the value that is returned by such a query.
The workaround I found is this:
I simply cast the type which Hibernate can not recognise(I believe this type is
VOID) to VARCHAR which Hibernate understands perfectly.
I hope this article helped you. Share your ideas in comments :)