选择光标:无针对JDBC类型的方言映射:-10
我有一个带有JParepository的Spring Boot应用程序,该应用程序包含具有此结构的本机查询:
SELECT a, b, c, CURSOR( SELECT ... FROM ... ), ...
FROM ...
WHERE ...
我得到以下例外:
org.hibernate.mappingException:jdbc类型没有方言映射:-10
我正在使用oracle12cdialect
,我认为问题来自我的查询中的光标
,但是我不喜欢知道如何解决它。另外,我无法修改查询,我被命令尝试按原样实现它。
事先感谢您的任何帮助。
I have a Spring Boot application with a JpaRepository which contains a native query with this structure:
SELECT a, b, c, CURSOR( SELECT ... FROM ... ), ...
FROM ...
WHERE ...
And I'm getting the following exception:
org.hibernate.MappingException: No Dialect mapping for JDBC type: -10
I am using Oracle12cDialect
, and I think the problem comes from the CURSOR
in my query, but I don't know how to solve it. Also, I cannot modify the query, I've been ordered to try to implement it as it is.
Thanks in advance for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此SQL返回了光标类型的列,该列是另一个SQLS结果集的句柄。我不相信Springboot支持这一点。
这是如何返回具有两个以上维度的数据的诀窍。
您必须将JSON对象用作第四列,或为第四列使用AH-HOC查询。查询该细节/子对象。
This SQL returns column of type CURSOR, which is a handle to another SQLs' resultSet. I do not believe SpringBoot support this.
This is a trick how to return data having more than two dimensions.
You have to either use JSON object as 4th column, or use ah-hoc query for each row for 4th column. To query that detail/child object.