当前位置: 技术问答>java相关
how to write a ejb ql !!!
来源: 互联网 发布时间:2015-05-24
本文导语: my cmp bean "RecordEntity" have these fields recordDateAndTime recordMaterialId recordMaterialAmount recordMaterialPrice recordImportOrExport recordUserId I just want: r.recordDateAndTime>= ?1 AND r.recordDateAndTime=?4 AND r.recordMaterialAmount=?6 AND...
my cmp bean "RecordEntity" have these fields
recordDateAndTime
recordMaterialId
recordMaterialAmount
recordMaterialPrice
recordImportOrExport
recordUserId
I just want:
r.recordDateAndTime>= ?1 AND r.recordDateAndTime=?4 AND r.recordMaterialAmount=?6 AND r.recordMaterialPrice= ?1 AND r.recordDateAndTime=?4 AND r.recordMaterialAmount=?6 AND r.recordMaterialPrice
recordDateAndTime
recordMaterialId
recordMaterialAmount
recordMaterialPrice
recordImportOrExport
recordUserId
I just want:
r.recordDateAndTime>= ?1 AND r.recordDateAndTime=?4 AND r.recordMaterialAmount=?6 AND r.recordMaterialPrice= ?1 AND r.recordDateAndTime=?4 AND r.recordMaterialAmount=?6 AND r.recordMaterialPrice