四、 Oracle 数据库方言选择:

2019-03-10 10:12:48.829 INFO 6488 — [0.1-2700-exec-7] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
Hibernate: select businessau0_.id as id1_0_, businessau0_.actiontable as actiontable2_0_, businessau0_.actiontype as actiontype3_0_, businessau0_.actiontime as actiontime4_0_, businessau0_.datadescription as datadescription5_0_, businessau0_.description as description6_0_, businessau0_.msgtype as msgtype7_0_, businessau0_.opaicaocd as opaicaocd8_0_, businessau0_.primarykey as primarykey9_0_, businessau0_.rolename as rolename10_0_, businessau0_.username as username11_0_, businessau0_.workernumber as workernumber12_0_ from businessaudit businessau0_ where 1=1 order by businessau0_.actiontime desc fetch first ? rows only
2019-03-10 10:12:49.167 WARN 6488 — [0.1-2700-exec-7] o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 933, SQLState: 42000
2019-03-10 10:12:49.168 ERROR 6488 — [0.1-2700-exec-7] o.h.engine.jdbc.spi.SqlExceptionHelper : ORA-00933: SQL 命令未正确结束

Oracle采用分页查询的时候,需要选择正确的数据库方言。

1、JPA默认情况下使用的数据库方言是SQLServer语法
2、oracle 11g 和12c 的数据库方言不同:
12c方言:dialect: org.hibernate.dialect.Oracle12cDialect
11g方言:dialect:
org.hibernate.dialect.Oracle10gDialect

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值