小编ed_*_*ann的帖子

具有 Oracle 分析窗口功能的 Hibernate Criteria

试图覆盖 Oracle10gDialect 并添加 over 和 partition 函数。我在hibernate.org 上阅读了有关如何覆盖方言的信息。我正在使用 Hibernate 4.1.7.Final 并且无法升级。我按照规定实现了它,但是我收到了这个错误。

     15:21:21,353  WARN SqlExceptionHelper:143 - SQL Error: 907, SQLState: 42000
[10/8/13 15:21:21:354 CDT] 00000021 SystemOut     O ORA-00907: missing right parenthesis

[10/8/13 15:21:21:354 CDT] 00000021 SystemOut     O 15:21:21,354 ERROR SqlExceptionHelper:144 - ORA-00907: missing right parenthesis
Run Code Online (Sandbox Code Playgroud)

这是我构建的类:

package com.edmann.util;

import org.apache.log4j.Logger;
import org.hibernate.dialect.Oracle10gDialect;
import org.hibernate.dialect.function.StandardSQLFunction;

/**
 * Because i need some analytic functions i am going to extend the
 * oracle10gDialect so i can register my functions i want to …
Run Code Online (Sandbox Code Playgroud)

java hibernate analytic-functions oracle10g hibernate-criteria

5
推荐指数
1
解决办法
3656
查看次数