HibernateSQLQuery projection with domain query type
Bug #838834 reported by
John Cook
on 2011-09-01
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Querydsl |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I've encountered a little problem trying to build HibernateSQLQuery using SQL query types but project it using domain query type (as written in manual: 2.2.14. Using Native SQL in Hibernate queries). However, validation performed during query building does not allow me to do that reporting unknown path for projection. According to manual, I consider this to be a bug (validation should be probably turned off before projection for AbstractHiberna
Example query: http://
Timo Westkämper (timo-westkamper) wrote : | #1 |
Timo Westkämper (timo-westkamper) wrote : | #2 |
Found the problem now and fixed it.
Changed in querydsl: | |
status: | New → Fix Committed |
Timo Westkämper (timo-westkamper) wrote : | #3 |
Released in 2.2.2
Changed in querydsl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Concerning your example query :
SKontakt sKontaktPath = SKontakt.kontakt;
QKontakt qKontaktPath = QKontakt.kontakt;
Query sqlQuery = hibernateSqlQuery() from(sKontaktPa th) where(sKontaktP ath.typ. eq("E-mail" )) createQuery( qKontaktPath) ;
.
.
.
How do SKontakt.kontakt and QKontakt.kontakt look like?
I have not yet been able to reproduce your problem.