[英]MEDIAN function in Oracle SQL generates Hibernate exception
I have the following SQL query in a Spring Boot application.我在 Spring 引导应用程序中有以下 SQL 查询。 The query is within a
@NamedNativeQuery
annotation:该查询位于
@NamedNativeQuery
注释中:
"SELECT s.libraryid, r.run_date, COUNT(*), MEDIAN(s.mean_depth) " +
"FROM r, s " +
"WHERE r.runid = s.runid " +
"GROUP BY s.libraryid, r.run_date " +
"ORDER BY r.run_date, s.libraryid"
The application crashes with the following exception:应用程序崩溃,但出现以下异常:
org.hibernate.MappingException: No Dialect mapping for JDBC type: 100
In the application.properties file Hibernate is configured thus:在application.properties文件中 Hibernate 配置如下:
# Hibernate config
spring.jpa.database-platform=org.hibernate.dialect.Oracle12cDialect
The query runs fine until I introduce the MEDIAN function.在我介绍 MEDIAN function 之前,查询运行良好。 I haven't been able to find what the JDBC Type 100 is.
我一直找不到 JDBC Type 100 是什么。 Does anybody know?
有人知道吗?
Thanks much.非常感谢。
JDBC type 100 is an Oracle-specific type, and it is BINARY_FLOAT
. JDBC 类型 100 是 Oracle 特定的类型,它是
BINARY_FLOAT
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.