【发布时间】:2018-10-05 08:59:52
【问题描述】:
我正在使用 Spring Boot 2.0.1、hibernate-spatial 5.2.17、Oracle DB 12c。 HikariCP 用于连接池和休眠方言为 OracleSpatial10gDialect。在查询中使用休眠空间函数时出现以下异常。
org.springframework.orm.jpa.JpaSystemException: java.lang.RuntimeException: 无法从 PreparedStatement 获取 OracleSpatial Connection 对象。嵌套异常是 org.hibernate.HibernateException: java.lang.RuntimeException: Couldn't get at the OracleSpatial Connection object from PreparedStatement。
我尝试了来自 Couldn't get at the OracleSpatial Connection object from the PreparedStatement 的建议。但面临同样的问题。
任何指向解决方案的指针都会有很大帮助。谢谢。
【问题讨论】:
标签: hibernate spring-boot oracle-spatial