gpt4 book ai didi

java - hql 中的 new 关键字如何工作?

转载 作者:搜寻专家 更新时间:2023-10-30 19:40:55 24 4
gpt4 key购买 nike

我在 jboss 的文档中找到了这个例子。

select new Family(mother, mate, offspr)
from DomesticCat as mother
join mother.mate as mate
left join mother.kittens as offspr

Family 类从何而来。我需要导入某处,还是使用其完全限定的类名?

最佳答案

Family 是一个普通的 POJO,带有需要声明或完全限定的适当构造函数。

关于java - hql 中的 new 关键字如何工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2145693/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com