Queryprojection error with springframework proxies
Bug #799254 reported by
AlexRiva
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Querydsl |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Queryprojection not working Using springframework with hibernate JPA and querydsl.
In AbstractJPAQuery at line 135 there is a check about query class name, this doesn't work if spring autoproxy is in use.
It should modified with a checking for class name starting with $ and then using the code for spring proxies (http://
To post a comment you must log in.
querydsl-jpa has already a dependency on hibernate- entitymanager, so why not simply change the check from:
if (query. getClass( ).getName( ).startsWith( "org.hibernate" )){
to
if (query instanceof HibernateQuery) {
??