1

これは私のHQLクエリですが、これを実行すると、次のエラーが発生しました。この問題を解決するにはどうすればよいですか

エラー: 予期しないトークン: d1

select d from DimensionStone d inner join d.stockRegister s where d.stockRegister.stockRegisterId <=? and s.application.applicationId=? 
    and d.isIssued='No' or (s.stockRegisterId <=? and d.isIssued='Yes' and d.issuedDate>(select max(updatedOn) from StockRegister st where st.stockRegisterId<? and st.application.applicationId=?)) and d not in(select d1 from DimensionStone d1 inner join d1.stockRegister s1 where s1.stockRegisterId <=? and s1.application.applicationId=? d1.isIssued='No'
4

2 に答える 2

0
and s1.application.applicationId=? d1.isIssued='No'

?との間に何かが欠けています。d1おそらくandです。

于 2013-08-27T09:36:25.970 に答える