hibernate 报query result offset is not supported

在配置hibernate.cfg.xml时需指定使用数据库的方言:

例:

<property name="dialect">org.hibernate.dialect.MySQL5Dialect</property>

以下是各数据库对应的方言(Dialect):


数据库


方言(Dialect)


DB2


org.hibernate.dialect.DB2Dialect


DB2 AS/400


org.hibernate.dialect.DB2400Dialect


DB2 OS390


org.hibernate.dialect.DB2390Dialect


PostgreSQL


org.hibernate.dialect.PostgreSQLDialect


MySQL5


org.hibernate.dialect.MySQL5Dialect


MySQL5 with InnoDB


org.hibernate.dialect.MySQL5InnoDBDialect


MySQL with MyISAM


org.hibernate.dialect.MySQLMyISAMDialect


Oracle(any version)


org.hibernate.dialect.OracleDialect


Oracle 9i


org.hibernate.dialect.Oracle9iDialect


Oracle 10g


org.hibernate.dialect.Oracle10gDialect


Oracle 11g


org.hibernate.dialect.Oracle10gDialect


Sybase


org.hibernate.dialect.SybaseASE15Dialect


Sybase Anywhere


org.hibernate.dialect.SybaseAnywhereDialect


Microsoft SQL Server 2000


org.hibernate.dialect.SQLServerDialect


Microsoft SQL Server 2005


org.hibernate.dialect.SQLServer2005Dialect


Microsoft SQL Server 2008


org.hibernate.dialect.SQLServer2008Dialect


SAP DB


org.hibernate.dialect.SAPDBDialect


Informix


org.hibernate.dialect.InformixDialect


HypersonicSQL


org.hibernate.dialect.HSQLDialect


H2 Database


org.hibernate.dialect.H2Dialect


Ingres


org.hibernate.dialect.IngresDialect


Progress


org.hibernate.dialect.ProgressDialect


Mckoi SQL


org.hibernate.dialect.MckoiDialect


Interbase


org.hibernate.dialect.InterbaseDialect


Pointbase


org.hibernate.dialect.PointbaseDialect


FrontBase


org.hibernate.dialect.FrontbaseDialect


Firebird


org.hibernate.dialect.FirebirdDialect

转载请注明出处:http://blog.csdn.net/jialinqiang/article/details/8679171

时间: 2024-08-07 13:22:27

hibernate 报query result offset is not supported的相关文章

hibernate使用Query进行查询

本文主要探讨hibernate的简单查询,主要是使用Query进行的查询. 1.首先看下annotation的API中关于查询的描述 2.3. 映射查询 2.3.1. 映射EJBQL/HQL查询 使用注解还可以映射EJBQL/HQL查询. @NamedQuery 和@NamedQueries是可使用在类和包上的注解. 但是它们的定义在session factory/entity manager factory范围中是都可见的. 命名式查询通过它的名字和实际的查询字符串来定义. javax.per

hibernate报错:Column &#39;id&#39; cannot be null

报错内容: 17:21:59,843  INFO org.hibernate.tool.hbm2ddl.SchemaExport:226 - Running hbm2ddl schema export 17:21:59,859 DEBUG org.hibernate.tool.hbm2ddl.SchemaExport:242 - import file not found: /import.sql 17:21:59,859  INFO org.hibernate.tool.hbm2ddl.Sch

spring+hibernate中的Result object returned from HibernateCallback isn&#39;t a List

Ok the problem is that for executeFind() the return type is List....so there is no way to use uniqueResult() within the callback from executeFind()...may be we should use execute() 上面这段话来自http://forum.springframework.org/showthread.php?t=58370 在使用exe

&gt;Hibernate 报错:this project is not a myeclipse hibernate project . assuming hibernate 3 cap

>Hibernate 报错:this project is not a myeclipse hibernate project . assuming hibernate 3 cap web 项目中 打开 hibernate.cfg.xml 文件时 提示:The project is not a myEclipse hibernate project. 并且:在 dbbrower中使用 hibernate reverse engineering 建立 表对应的bean 和 配置文件时:找不到可用的

pip安装报错:is not a supported wheel on this platform

转自:http://www.cnblogs.com/nice-forever/p/5371906.html 可能的原因1:安装的不是对应python版本的库,下载的库名中cp27代表python2.7,其它同理. 可能的原因2:这个是我遇到的情况(下载的是对应版本的库,然后仍然提示不支持当前平台) 我下载到的numpy库文件名: numpy-1.10.4+mkl-cp27-cp27m-win32.whl 使用pip安装(在命令行中): pip installnumpy-1.10.4+mkl-cp

当设置RESULT_CACHE_MAX_SIZE参数并且重启过database后,Query Result Cache 还是被禁用的。

来源于: Query Result Cache is disabled After Setting RESULT_CACHE_MAX_SIZE And Restarting The Database (文档 ID 460581.1) 适用于: Oracle Server - Standard Edition - Version: 11.1.0.6 to 11.1.0.6 This problem can occur on any platform. 症状: The RESULT_CACHE_MA

pip安装numpy等库报错:is not a supported wheel on this platform

可能的原因1:安装的不是对应python版本的库,下载的库名中cp27代表python2.7,其它同理. 可能的原因2:这个是我遇到的情况(下载的是对应版本的库,然后仍然提示不支持当前平台) 我下载到的numpy库文件名: numpy-1.10.4+mkl-cp27-cp27m-win32.whl 使用pip安装(在命令行中): pip installnumpy-1.10.4+mkl-cp27-cp27m-win32.whl 报错:***  is not a supported wheel on

Hibernate 入门----Query,Criteria,SQLQuery

hibernate 的QueryHQL(Hibernate Query Language)是一种Hibernate专用的查询语句,基于面向对象的模式,将SQL语句转化成对象的操作格式.list() 查询多条 @Test public void query(){ // sql : select 列名 from 表明; // hql : select 属性名 from 类名; // select 别名.属性 from 类名 as 别名; String hql = "from User";

(转存)pip安装报错:is not a supported wheel on this platform

可能的原因1:安装的不是对应python版本的库,下载的库名中cp27代表python2.7,其它同理. 可能的原因2:这个是我遇到的情况(下载的是对应版本的库,然后仍然提示不支持当前平台) 我下载到的numpy库文件名: numpy-1.10.4+mkl-cp27-cp27m-win32.whl 使用pip安装(在命令行中): pip installnumpy-1.10.4+mkl-cp27-cp27m-win32.whl 报错:***  is not a supported wheel on