Oracle的HQL:
Select * FROM Employee
where date1 between '04-APR-05 02.55.50.000000 AM'
and '04-APR-16 02.55.50.000000 AM'
and extract(year from date1) = extract(year from'04-APR-14 02.27.05.000000 AM');
HQL为oracle生成的查询无效。我收到了一个错误 “提取源的无效提取字段”。