MySQL下使用Hibernate的Query中setMaxResults方法出现错误:
System Runtime Error: JDBC exception on Hibernate data access; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query 
这是因为MySQL不支持top,而是使用了limit!
目前还没找到解决办法,不知道为什么Hibernate搞出这玩意,干吗不转换一下,还是bug呢!晕! 
终于解决了,不是人家的错误,而是我自己弄错了。方言干错了!失败!
	
posted on 2007-12-27 00:47 
周锐 阅读(1082) 
评论(0)  编辑  收藏  所属分类: 
Hibernate 、
MySQL