我以如下方式在JPQL查询中使用new
new
select ob.property1, NEW package1.CustomObject(item, dimension, material, product) from mainTable ob LEFT JOIN ....
ob.property1说这是意外令牌后,应用程序抱怨昏迷。看来您不能在select子句中使用带有new的多列。你能帮我吗
ob.property1