EJB-QL: writing a regular expression query using EJB QL

Discussion in 'Java' started by Sriv Chakravarthy, Sep 18, 2003.

  1. Is there a way to put a parameter marker in a EJB QL using LIKE ?
    In other words, how can I do the following in EJB-QL:

    SELECT OBJECT(Person) FROM Person AS p WHERE p.name LIKE '%?1%'

    Or is there an equivalent of this ?

    I would much appreciate your help. Thanks.
     
    Sriv Chakravarthy, Sep 18, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. lonelyplanet999

    Regular Expression Query

    lonelyplanet999, Aug 14, 2003, in forum: Perl
    Replies:
    1
    Views:
    1,841
  2. VSK
    Replies:
    2
    Views:
    2,336
  3. Martin Biddiscombe

    Regular expression query

    Martin Biddiscombe, Feb 3, 2006, in forum: Python
    Replies:
    4
    Views:
    379
    bruno at modulix
    Feb 6, 2006
  4. Replies:
    6
    Views:
    659
  5. Raymond Schanks
    Replies:
    0
    Views:
    672
    Raymond Schanks
    Aug 3, 2010
Loading...

Share This Page