I\'ve seen that DBMS like MySQL supports query containing regular expressions. Does Eclipselink support this?
I have to retrieve entities having some String attribute ma
MySQL uses REGEX or RLIKE for regular expression queries. JPQL does not support these operators, so you can use a native SQL query.
In EclipseLink you could define your own ExpressionOperator for these, and use it in an Expression query, but not currently with JPQL. JPQL does support calling database functions using FUNC, but these have different syntax than functions. You could extend the MySQLPlatform to make #like us REGEX or RLIKE.
Please log a bug for this on EclipseLink. Most databases now support regex, so this support should be available in JPQL.