mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
added comments
This commit is contained in:
parent
df948b1da2
commit
85e5fb3bc1
@ -112,6 +112,7 @@ public abstract class AbstractHibernateSQLQuery<Q extends AbstractHibernateSQLQu
|
||||
public Query createQuery(Expression<?>... args) {
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
// create aliases for non path projections
|
||||
// https://github.com/mysema/querydsl/issues/80
|
||||
if (!(args[i] instanceof Path) && !(args[i] instanceof FactoryExpression)) {
|
||||
args[i] = ExpressionUtils.as(args[i], "col"+(i+1));
|
||||
}
|
||||
|
||||
@ -105,6 +105,7 @@ public abstract class AbstractJPASQLQuery<Q extends AbstractJPASQLQuery<Q> & com
|
||||
public Query createQuery(Expression<?>... args) {
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
// create aliases for non path projections
|
||||
// https://github.com/mysema/querydsl/issues/80
|
||||
if (!(args[i] instanceof Path) && !(args[i] instanceof FactoryExpression)) {
|
||||
args[i] = ExpressionUtils.as(args[i], "col"+(i+1));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user