EntityOperator.NOT does not work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

EntityOperator.NOT does not work

Adam Heath-2
NOT does *not* implement compare(); the method body in
EntityComparisonOperator will throw UnsupportedOperationException.  In
addition, the generated sql with be 'foo NOT bar', which I don't think
is valid.

In actuality, NOT should be a Join operator; however, the condition
system doesn't support a Join operator that takes a single expression.

I've grepped all java source files, and nothing uses the NOT operator.
 I haven't searched any other supplementary code files.

Should I work at trying to fix this, or should NOT just be removed, as
it's never actually worked at all.
Reply | Threaded
Open this post in threaded view
|

Re: EntityOperator.NOT does not work

Jacques Le Roux
Administrator
Hi Adam,

I'd say, if does not work at least comment it out and mark it as to be fixed (ie //FIXME)
My 2 cts

Jacques

From: "Adam Heath" <[hidden email]>

> NOT does *not* implement compare(); the method body in
> EntityComparisonOperator will throw UnsupportedOperationException.  In
> addition, the generated sql with be 'foo NOT bar', which I don't think
> is valid.
>
> In actuality, NOT should be a Join operator; however, the condition
> system doesn't support a Join operator that takes a single expression.
>
> I've grepped all java source files, and nothing uses the NOT operator.
> I haven't searched any other supplementary code files.
>
> Should I work at trying to fix this, or should NOT just be removed, as
> it's never actually worked at all.
>