I am using Spring Boot 2.0.1 , hibernate-spatial 5.2.17 , Oracle DB 12c. HikariCP For Connection pool and hibernate dialect as OracleSpatial10gDialect. I get the following exception when hibernate spatial functions are used in my query.
org.springframework.orm.jpa.JpaSystemException: java.lang.RuntimeException: Couldn't get at the OracleSpatial Connection object from the PreparedStatement.; nested exception is org.hibernate.HibernateException: java.lang.RuntimeException: Couldn't get at the OracleSpatial Connection object from the PreparedStatement.
I tried suggestions from here Couldn't get at the OracleSpatial Connection object from the PreparedStatement . But facing same issue.
Any pointers to the solution would be of great help. Thank you.