Hi Devs,
The dev team in the company I worked for, changed the QueryImpl class
in order to support the IN queries. I would like to know if this patch
can be approved by the commiters.
In this class I saw the following comment
/**
* Need to support the following: <p/> <p/> - Navigation operator (.)
DONE - Arithmetic operators: +, - unary *, / multiplication and
division +, - addition and subtraction -
* Comparison operators : =, >, >=, <, <=, <> (not equal), [NOT]
BETWEEN, [NOT] LIKE, [NOT] IN, IS [NOT] NULL, IS [NOT] EMPTY, [NOT]
MEMBER [OF] - Logical operators: NOT AND OR
* <p/> see:
http://docs.solarmetric.com/full/html/ejb3_langref.html#ejb3_langref_where
<p/> User: treeder Date: Feb 8, 2008 Time: 7:33:20 PM
*/
QueryImpl.java:
Replace the line:
public static String conditionRegex = "(<>)|(>=)|(<=)|=|>|<|\\band\\b|\
\bor\\b|\\bis\\b|\\blike\\b";
by
public static String conditionRegex = "(<>)|(>=)|(<=)|=|>|<|\\band\\b|\
\bor\\b|\\bis\\b|\\blike\\b|\\bin\\b";
Will this do the trick? Or there is something else to do?
Regards,
M-A Vanier