mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
fixed joda time support
This commit is contained in:
parent
1ea8ef20d2
commit
078c4d6cfc
@ -40,6 +40,7 @@ public class SimplePathFactory implements PathFactory {
|
||||
});
|
||||
|
||||
private final Map<Object,PComparableArray<?>> caToPath = new PathFactory<Object,PComparableArray<?>>(new Transformer<Object,PComparableArray<?>>(){
|
||||
@SuppressWarnings("unchecked")
|
||||
public PComparableArray<?> transform(Object arg) {
|
||||
return new PComparableArray(((List)arg).get(0).getClass(), md());
|
||||
}
|
||||
|
||||
@ -89,6 +89,8 @@ public abstract class Expr<D>{
|
||||
public final EBoolean or(EBoolean right) {return Grammar.or(this, right);}
|
||||
}
|
||||
|
||||
// <D extends Comparable> is used instead of <D extends Comparable<? super D>
|
||||
// to support pre-JDK1.5 types such as Joda time
|
||||
@SuppressWarnings("unchecked")
|
||||
public static abstract class EComparable<D extends Comparable> extends ESimple<D>{
|
||||
private OrderSpecifier<D> asc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user