Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with apt-maven-plugin version 1.0.8: won't generate Q classes for @RooJpaEntity annotated classes #382

Closed
balteo opened this issue Apr 7, 2013 · 10 comments
Milestone

Comments

@balteo
Copy link

@balteo balteo commented Apr 7, 2013

https://github.com/balteo/querydsl/tree/master/roo-querydsl-issue.balteo

@timowest
Copy link
Member

@timowest timowest commented Apr 7, 2013

The annotations of the RooAnnotationProcessor were incomplete. It didn't run if no Querydsl nor JPA annotations were used.

@balteo
Copy link
Author

@balteo balteo commented Apr 7, 2013

Timo. I am glad you fixed it. Will this be available for version 1.0.9?
I tried to use @QueryEntity or @entity on my entity classes but no Q class gets generated. There must be some other issue?

@timowest
Copy link
Member

@timowest timowest commented Apr 7, 2013

It's a Querydsl bug, not a apt-maven-plugin bug. apt-maven-plugin just executes the annotation processor, it doesn'
t contain any annotation processors on it's own.

The fix will be available in the next Querydsl release, ETA 1-2 weeks.

@balteo
Copy link
Author

@balteo balteo commented Apr 7, 2013

Hi Timo,
What config/version do I need in order to be able to carry on with my project until the next QueryDSL release?
Regards,
J.


De : Timo Westkämper notifications@github.com
À : mysema/querydsl querydsl@noreply.github.com
Cc : balteo balteo@yahoo.fr
Envoyé le : Dimanche 7 avril 2013 14h55
Objet : Re: [querydsl] Issue with apt-maven-plugin version 1.0.8: won't generate Q classes for @RooJpaEntity annotated classes (#382)

It's a Querydsl bug, not a apt-maven-plugin bug. apt-maven-plugin just executes the annotation processor, it doesn'
t contain any annotation processors on it's own.
The fix will be available in the next Querydsl release, ETA 1-2 weeks.

Reply to this email directly or view it on GitHub.

@timowest
Copy link
Member

@timowest timowest commented Apr 7, 2013

I think if you annotate a single entity with e.g. QueryEntity from Querydsl all the Roo entities should be handled as well. If that doesn't work, add the QueryEntity annotation temporarily to your Roo entity files.

@balteo
Copy link
Author

@balteo balteo commented Apr 7, 2013

I've tried that already to no avail...
J.


De : Timo Westkämper notifications@github.com
À : mysema/querydsl querydsl@noreply.github.com
Cc : balteo balteo@yahoo.fr
Envoyé le : Dimanche 7 avril 2013 15h03
Objet : Re: [querydsl] Issue with apt-maven-plugin version 1.0.8: won't generate Q classes for @RooJpaEntity annotated classes (#382)

I think if you annotate a single entity with e.g. QueryEntity from Querydsl all the Roo entities should be handled as well. If that doesn't work, add the QueryEntity annotation temporarily to your Roo entity files.

Reply to this email directly or view it on GitHub.

@timowest
Copy link
Member

@timowest timowest commented Apr 7, 2013

The configuration in your example doesn't work, add the output directory

<configuration>
    <processor>com.mysema.query.apt.roo.RooAnnotationProcessor</processor>
    <options>
        <querydsl.packageSuffix>.querydsl</querydsl.packageSuffix>
    </options>
</configuration>

So add e.g. `target/generated-sources/java'.

The fix with @QueryEntity worked for me.

@balteo
Copy link
Author

@balteo balteo commented Apr 7, 2013

Timo,
It does work with target/generated-sources/java. Thanks a lot Timo!
Julien.


De : Timo Westkämper notifications@github.com
À : mysema/querydsl querydsl@noreply.github.com
Cc : balteo balteo@yahoo.fr
Envoyé le : Dimanche 7 avril 2013 15h09
Objet : Re: [querydsl] Issue with apt-maven-plugin version 1.0.8: won't generate Q classes for @RooJpaEntity annotated classes (#382)

The configuration in your example doesn't work, add the output directory
com.mysema.query.apt.roo.RooAnnotationProcessor <querydsl.packageSuffix>.querydsl</querydsl.packageSuffix>
So add e.g. `target/generated-sources/java'.
The fix with @QueryEntity worked for me.

Reply to this email directly or view it on GitHub.

@timowest
Copy link
Member

@timowest timowest commented Apr 16, 2013

Released in 3.1.1

@timowest timowest closed this Apr 16, 2013
@balteo
Copy link
Author

@balteo balteo commented Apr 17, 2013

Great!


De : Timo Westkämper notifications@github.com
À : mysema/querydsl querydsl@noreply.github.com
Cc : balteo balteo@yahoo.fr
Envoyé le : Mardi 16 avril 2013 12h16
Objet : Re: [querydsl] Issue with apt-maven-plugin version 1.0.8: won't generate Q classes for @RooJpaEntity annotated classes (#382)

Released in 3.1.1

Reply to this email directly or view it on GitHub.

@timowest timowest added this to the 3.1.1 milestone Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants