简体   繁体   中英

QueryDsl does not generate q-classes for @Entity classes of git submodules

I have a java project (spring boot) with git submodules. 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.

What should I do to fix it?

ps Spring Data works well, all @Entity classes are available to use.

Add a package-info.java file to your own project, that references the classes from the child project in @QueryEntities :

@QueryEntities({
        BlobEntity.class
})
package com.pallasathenagroup.querydsl;

import com.blazebit.persistence.testsuite.entity.BlobEntity;
import com.querydsl.core.annotations.QueryEntities;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM