问题
I figured out that if entity class has @jsonAutoDetect annotation, the Q class not generated,
Here is the example :
https://github.com/prilia/SpringJpa-Quarydsl-Test/tree/master/JpaSpringQuarydsl
If remove JsonAutoDetect Q classes genereted fine,
Please, how can I use with entity class as json ?
回答1:
In cases like these always disable the execution of the ATP plugin and see if your build has other issues.
e.g. https://github.com/prilia/SpringJpa-Quarydsl-Test/blob/master/JpaSpringQuarydsl/pom.xml#L432
import
is not a valid scope.
来源:https://stackoverflow.com/questions/24915698/querydsl-and-jsonautodetect-q-classes-not-generated