You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ComparableExpressionBase's public final Coalesce<T> coalesce(Expression<?>...exprs) returns a Coalesce<T>. Coalesce does not have SimpleExpression's public BooleanExpression eq(T right) method, so I assume the idea is to use Coalesce's public NumberExpression<?> asNumber(). However if you try to E.G: (I know the query is nonsense)
you receive the compiler error The method eq(capture#2-of ?) in the type SimpleExpression<capture#2-of ?> is not applicable for the arguments (NumberPath<Long>). I'm working around this with the following code:
The current workaround is a cast: (NumberExpression<Long>) someRelationalPathBase.id.coalesce(someOtherRelationalPathBase.id).asNumber(). Alternatively: Expressions.asNumber(someRelationalPathBase.id.coalesce(someOtherRelationalPathBase.id)).
ComparableExpressionBase
'spublic final Coalesce<T> coalesce(Expression<?>...exprs)
returns aCoalesce<T>
.Coalesce
does not haveSimpleExpression
'spublic BooleanExpression eq(T right)
method, so I assume the idea is to useCoalesce
'spublic NumberExpression<?> asNumber()
. However if you try to E.G: (I know the query is nonsense)you receive the compiler error
The method eq(capture#2-of ?) in the type SimpleExpression<capture#2-of ?> is not applicable for the arguments (NumberPath<Long>)
. I'm working around this with the following code:The text was updated successfully, but these errors were encountered: