Shortcut for Expr.as(Path)
Bug #633128 reported by
Samppa Saarela
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Querydsl |
Fix Released
|
Medium
|
Timo Westkämper |
Bug Description
Instead of
PNumber<Long> countAlias = new PNumber<
// ...use countAlias in e.g. having clause...
query.list(
Something like this:
ENumber<Long> count = entity.
// ...use count in e.g. having clause...
query.list(count);
In this latter form "count" would be serialized in full form in select and from clauses and through the alias in other query parts.
Changed in querydsl: | |
importance: | Undecided → Medium |
Changed in querydsl: | |
assignee: | nobody → Timo Westkämper (timo-westkamper) |
status: | New → In Progress |
To post a comment you must log in.
Added shortcut into ESimple and subclasses. Usage examples :
@Test {DERBY, HSQLDB} )
expectedQuery = "select e.LASTNAME, sum(e.SALARY) as salarySum from EMPLOYEE2 e group by e.LASTNAME having salarySum > ?";
@ExcludeIn(
public void path_alias(){
}