Closed rveguilla closed 11 years ago
Could you file this as a Querydsl bug, since this an issue in the AnnotationProcessor, not the Maven plugin.
Hmm... I will, but I'm not sure this is a problem with the AnnoationProcessor.
Looking at the querydsl-codegen source code I can see that I should be able to override the prefix by setting the prefix to "". The problem is that the empty querydsl.prefix tag that I set in the plugin produces "querydsl.prefix=null" instead of "querydsl.prefix=" when building the compiler options (AbstractProcessorMojo.java:182). https://github.com/mysema/apt-maven-plugin/blob/master/src/main/java/com/mysema/maven/apt/AbstractProcessorMojo.java#L182
Yes, you are right about that, this seems to be an issue with the apt-maven-plugin instead.
Fixed in 1.1.0, but the null value handling needs also to be fixed on the Querydsl side
Configuring the apt-maven-plugin with the option:
<querydsl.prefix></querydsl.prefix>
to remove the Q prefix results in classes prefixed with the word null.
Example: For a class named 'com.package.MyBean' it will generated a query type class named 'com.package.nullMyBean'.