tags:

views:

10

answers:

1

I have query in mysql like

SELECT COUNT(DISTINCT MOBILE) FROM TBLM_CUSTOMER WHERE MOBILE NOT REGEXP '^00*0$' AND LENGTH(MOBILE) >= 10;

I am using EJB 3.0 and I want to make same query using NamedQuery, same thing is possible using createQuery , but i want to use NamedQuery.

Is it possible to use regular expression using NamedQuery in EJB 3.0?