我有 :
@NamedQuery(name = "Transaction.getDataFromDateToDate",
query = "SELECT t FROM CustomerTransaction t
WHERE t.accID.accID = :accID AND CONVERT(varchar(10),t.tranDate,126)
BETWEEN :FromDate AND :ToDate order by t.tranID DESC"),
我用JPA 2.1
,查询不运行。请帮我。