mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
This commit is contained in:
parent
d84abe576c
commit
f2e64f5dfd
@ -272,8 +272,6 @@ class PropertyAccessInvocationHandler implements MethodInterceptor {
|
||||
path = new PBoolean(pm);
|
||||
rv = (T) Boolean.TRUE;
|
||||
|
||||
// Collection API types
|
||||
|
||||
} else if (List.class.isAssignableFrom(type)) {
|
||||
Class<?> elementType = getTypeParameter(genericType, 0);
|
||||
path = new PEntityList(elementType, elementType.getSimpleName(), pm);
|
||||
@ -295,8 +293,6 @@ class PropertyAccessInvocationHandler implements MethodInterceptor {
|
||||
path = new PEntityMap(keyType, valueType, valueType.getSimpleName(), pm);
|
||||
rv = (T) aliasFactory.createAliasForProp(type, parent, path);
|
||||
|
||||
// enums
|
||||
|
||||
} else if (Enum.class.isAssignableFrom(type)) {
|
||||
path = new PSimple<T>(type, pm);
|
||||
rv = type.getEnumConstants()[0];
|
||||
|
||||
@ -22,26 +22,41 @@ public final class MathFunctions {
|
||||
private MathFunctions() {
|
||||
}
|
||||
|
||||
/**
|
||||
* use left.abs() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static <A extends Number & Comparable<?>> ENumber<A> abs(ENumber<A> left) {
|
||||
return left.abs();
|
||||
}
|
||||
|
||||
/**
|
||||
* use left.sqrt() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static <A extends Number & Comparable<?>> ENumber<Double> sqrt(ENumber<A> left) {
|
||||
return left.sqrt();
|
||||
}
|
||||
|
||||
/**
|
||||
* use ENumber.random() instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static ENumber<Double> random() {
|
||||
return ENumber.random();
|
||||
}
|
||||
|
||||
/**
|
||||
* use ENumber.max(left, right) instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static <A extends Number & Comparable<?>> ENumber<A> max(Expr<A> left, Expr<A> right) {
|
||||
return ENumber.max(left, right);
|
||||
}
|
||||
|
||||
/**
|
||||
* use ENumber.min(left, right) instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static <A extends Number & Comparable<?>> ENumber<A> min(Expr<A> left, Expr<A> right) {
|
||||
return ENumber.min(left, right);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user