【发布时间】:2012-11-04 17:03:38
【问题描述】:
我正在将应用程序从 Hibernate 移动到 EclipseLink。 我有以下命名查询:
delete from MyObject where id<=:LAST_ID
查询在 Hibernate 中运行良好,但在 EclipseLink 中失败并出现以下错误:
标识变量 'id' 不能与
JPA不允许在where caluse中使用ID字段吗?
任何解决方法将不胜感激。
【问题讨论】:
标签: java hibernate jpa orm eclipselink