[英]QueryDsl does not generate q-classes for @Entity classes of git submodules
I have a java project (spring boot) with git submodules.我有一个带有 git 子模块的 java 项目(弹簧靴)。 I've added QueryDsl to my project but it generates q-classes only for @Entity classes of main project, not for @Entity classes of submodules.我已将 QueryDsl 添加到我的项目中,但它仅为主项目的 @Entity 类生成 q-classes,而不为子模块的 @Entity 类生成 q-classes。
What should I do to fix it?我应该怎么做才能修复它?
ps Spring Data works well, all @Entity classes are available to use. ps Spring 数据运行良好,所有@Entity 类都可以使用。
Add a package-info.java
file to your own project, that references the classes from the child project in @QueryEntities
:将package-info.java
文件添加到您自己的项目中,该文件引用@QueryEntities
中子项目中的类:
@QueryEntities({
BlobEntity.class
})
package com.pallasathenagroup.querydsl;
import com.blazebit.persistence.testsuite.entity.BlobEntity;
import com.querydsl.core.annotations.QueryEntities;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.