【发布时间】:2015-02-13 13:01:16
【问题描述】:
这是question的延续
我已将查询命名为
select new Emp(o.empNo, o.empName) from Emp o
和构造函数定义为
public Emp(String empNo, String empName) {
this.empNo= empNo;
this.empName= empName;
}
执行时出现错误
Exception [TOPLINK-8013] (Oracle TopLink Essentials - 2.1
(Build b52-fcs (09/24/2008))):
oracle.toplink.essentials.exceptions.EJBQLException
Exception Description: Error compiling the query [Emp.findAll:
select new Emp(o.empNo, o.empName) from Emp o ], line 1, column 9:
constructor class [Emp] not found.
【问题讨论】:
标签: java jpa toplink toplink-essentials