fixed handling of Locale typed properties

This commit is contained in:
Timo Westkämper 2008-11-21 09:28:04 +00:00
parent 1f97b689f9
commit 4150d7de75
3 changed files with 5 additions and 5 deletions

View File

@ -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);}
}
/**

View File

@ -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);
}

View File

@ -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) {