Prevent using non-root alias paths in joins
Bug #614374 reported by
Marko Lavikainen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Querydsl |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It is possible to instantiate QTypes from path i.e.
QCat cat = QCat.cat;
QRace race1 = QRace.race;
QRace race2 = cat.race;
This means that also joins are possible in two ways:
HibernateQuery qry = createQuery(cat);
qry.leftJoin(
or
HibernateQuery qry = createQuery(cat);
qry.leftJoin(
Both options can be used to construct a query, but the latter option yields a QuerySyntaxExce
The latter construction should probably be prevented.
summary: |
- Prevent using QType from path in joins + Prevent using non-root alias paths in joins |
Changed in querydsl: | |
status: | New → Fix Committed |
To post a comment you must log in.
I will be out of the office starting 21/07/2010 and will not return until
09/08/2010.