Problem with abstract fields and generics
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Querydsl |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
We are currently evaluating QueryDSL to simplify and unify our access to the data layer (JPA2 and Hibernate Search) as its API looks really great.
We tried to use it on one of our projects, which are all based on a common framework.
The particularity of this framework is that we have a GenericEntity<K, E> class which has abstract methods for getId() and setId(). This causes problem and we can't get QueryDSL to generate classes with our setup.
You'll find 2 files attached built by one of my colleagues, Théo Chamley:
- the first sample project error-abstract-
public final ComparablePath<> id = createComparabl
- the second sample project (error-
When we use mvn package with this project, we have the following NPE:
java.lang.
at com.mysema.
at com.mysema.
at com.mysema.
at com.mysema.
at com.mysema.
at com.mysema.
at com.mysema.
at com.mysema.
at com.mysema.
at com.mysema.
at com.mysema.
at com.sun.
Note that we use the latest version of QueryDSL (2.2.0 and maven-apt-plugin 1.0.2) and that these test cases are extracted from a real project. We had the second problem with our project and we found the first one while working on getting a simple test case.
Thanks for your feedback.
--
Guillaume
Changed in querydsl: | |
status: | New → In Progress |
Changed in querydsl: | |
status: | In Progress → Fix Committed |
I commited some related fixes to SVN trunk. Could you try again?