play1.x中查询报错 expecting "by", found '.'

find 多表查询时
sql语句(order.product.name like ? or order.product.ename like ?)
报错
line 1:62: expecting “by”, found ‘.’
at antlr.Parser.match(Parser.java:211)

解决方案
find(“select ot from models.OrderTank ot where (ot.order.product.name like ? or ot.order.product.ename like ?)”)