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

Comments

Projects
None yet
2 participants
@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Apr 7, 2013

Member

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

Member

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

This comment has been minimized.

Show comment
Hide comment
@balteo

balteo 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?

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Apr 7, 2013

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@balteo

balteo 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.

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Apr 7, 2013

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@balteo

balteo 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.

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Apr 7, 2013

Member

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.

Member

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

This comment has been minimized.

Show comment
Hide comment
@balteo

balteo 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.

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 timowest referenced this issue in querydsl/apt-maven-plugin Apr 12, 2013

Closed

RooAnnotationProcessor is not working with @RooJpaEntity #18

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Apr 16, 2013

Member

Released in 3.1.1

Member

timowest commented Apr 16, 2013

Released in 3.1.1

@timowest timowest closed this Apr 16, 2013

@balteo

This comment has been minimized.

Show comment
Hide comment
@balteo

balteo 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.

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