mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-21 21:14:12 +08:00
This commit is contained in:
parent
2c5250541c
commit
876922e351
@ -8,7 +8,7 @@ package com.mysema.query;
|
||||
import com.mysema.query.grammar.Types.*;
|
||||
|
||||
/**
|
||||
* ExtQuery provides
|
||||
* ExtQuery externds the Query interface to provide innerJoin, leftJoin and with methods
|
||||
*
|
||||
* @author tiwe
|
||||
* @version $Id$
|
||||
|
||||
@ -32,7 +32,9 @@ public class Grammar {
|
||||
return op;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
static <A> Expr<A> _const(A obj){
|
||||
if (obj instanceof Expr) return (Expr<A>)obj;
|
||||
ConstantExpr<A> e = new ConstantExpr<A>();
|
||||
e.constant = obj;
|
||||
return e;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user