I know, this is a know question, that has been already asked here . The answer suggests to use the @QueryEntities. But I did not understand how to use this annotation and where to use it. Does anyone have an example to show me this working? Or better yet, is there a better way to solve this?
You should new a package-info.java file in your package
@QueryEntities(value = {BaseEntity.class}) package xxxx.xxxx.xxx;
import com.querydsl.core.annotations.QueryEntities;
import xxx.xxxx.BaseEntity;
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.