【发布时间】:2014-02-24 03:28:20
【问题描述】:
我从早上开始就一直在尝试解决这个问题。但我做不到。
Query query = em.createQuery("Update ABC p set p.sync_status=14 where p.eventhistoryid in (select c.eventhistoryid from ABC c where c.sync_status=0 and c.receivedtimestamp >= getTimeStampAfterDeductingHours(24)");
ABC entity class contains the below column:
@Column(name="sync_status")
private short syncStatus = 0;
此列是 SMALLINT TYPE 且 NOT NULL。
得到以下错误:
org.hibernate.QueryException:无法解析属性:sync_status。
【问题讨论】: