mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
fixed handling of Locale typed properties
This commit is contained in:
parent
1f97b689f9
commit
4150d7de75
@ -96,6 +96,8 @@ public abstract class Expr<D> {
|
||||
public static abstract class Simple<D> extends Expr<D>{
|
||||
public Simple(Class<D> type) {super(type);}
|
||||
public Expr<D> as(java.lang.String to){return IntGrammar.as(this, to);}
|
||||
public Boolean in(D... args) {return IntGrammar.in(this,args);}
|
||||
public Boolean in(CollectionType<D> arg) {return IntGrammar.in(this, arg);}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -132,13 +132,11 @@ class IntGrammar{
|
||||
return createBoolean(Ops.GT, left, right);
|
||||
}
|
||||
|
||||
static <A extends Comparable<A>> Expr.Boolean in(Expr<A> left,
|
||||
static <A> Expr.Boolean in(Expr<A> left,
|
||||
A... rest) {
|
||||
return createBoolean(Ops.IN, left, createConstant(rest));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static <A> Expr.Boolean in(Expr<A> left, CollectionType<A> right){
|
||||
return createBoolean(Ops.IN, left, (Expr<?>)right);
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ public interface Path<C> {
|
||||
protected <A> EntityList<A> _entitylist(java.lang.String path,Class<A> type) {
|
||||
return new EntityList<A>(type, forProperty(this, path));
|
||||
}
|
||||
protected <A> Expr.Simple<A> _simple(java.lang.String path, Class<A> type){
|
||||
protected <A> Path.Simple<A> _simple(java.lang.String path, Class<A> type){
|
||||
return new Path.Simple<A>(type, forProperty(this, path));
|
||||
}
|
||||
protected <A> ComponentCollection<A> _simplecol(java.lang.String path,Class<A> type) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user