//错误 hibernate似乎不支持此种更新条件 报错为 ,位置应该是set
hql : update RecordEntity record,ProjectEntity p set record.xxx = ?
where ............
报错信息 [org.hibernate.hql.internal.ast.ErrorCounter] [reportError--60]- - <line 1:70: expecting "set", found ','>
[org.hibernate.hql.internal.ast.ErrorCounter] [reportError--55]- - <line 1:70: expecting "set", found ','>
line 1:70: expecting "set", found ','
at antlr.Parser.match(Parser.java:211)
//sql成功执行
sql : update record record,project p set record.xxx = ?
//转为子查询Hql成功执行
hql :update RecordEntity set xxx = ?
where xxx in ( select uuid from ProjectEntity where yyy in (?,?,?,?))";