【发布时间】:2018-11-21 14:46:45
【问题描述】:
我刚刚开始使用 Spring Roo,在生成带有实体的简单项目时遇到了问题。我正在关注 DZone 的一篇文章。
DZone How to generate spring boot application
当我按照这些步骤操作时,我会生成一个名为 owner 的域模型,其中包含 2 个字段
用户名
电子邮件
当我完成生成项目时,它更正创建了 Owner 模型,但代码中存在对 QOwner 的引用,无法找到它们的类。
@RooJpaRepositoryCustomImpl(repository = OwnerRepositoryCustom.class)
public class OwnerRepositoryImpl extends QueryDslRepositorySupport{
OwnerRepositoryImpl() {
super(Owner.class);
}
private JPQLQuery getQueryFrom(QOwner qEntity){
return from(qEntity);
}
}
【问题讨论】:
标签: java spring-boot spring-roo