Hi there,
we have a project setup with Hibernate 4 and Hibernate Spatial using a Postgresql database with the PostGIS extension. Currently we are migrating to Hibernate 5 and tackled some problems so far.
But now we ran into an issue with log messages provided by JDBCDSLOG. When previously using Hibernate 4 with Hibernate Spatial, JDBCDSLOG was logging geometries as WKT, this was possible as it received the SQL parameters for geometries as PGgeometry objects. With Hibernate 5 it receives these parameters as byte arrays and can only log a cryptic address like [B@1361cb3e).
We assume that this byte array is the reason for another problem we ran into by using the function
buffer in JPQL statements:
Code:
org.postgresql.util.PSQLException: ERROR: function st_buffer(bytea, integer) is not unique
Hinweis: Could not choose a best candidate function. You might need to add explicit type casts.
Is it possible to enforce Hibernate to use PGgeometry objects instead of byte arrays? If not we would be interested why the behaviour was changed?
Kind regards,
Marko Skocibusic