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. Advertisements

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,962
  2. VSK
    Replies:
    2
    Views:
    2,657
  3. =?iso-8859-1?B?bW9vcJk=?=

    Matching abitrary expression in a regular expression

    =?iso-8859-1?B?bW9vcJk=?=, Dec 1, 2005, in forum: Java
    Replies:
    8
    Views:
    1,077
    Alan Moore
    Dec 2, 2005
  4. Martin Biddiscombe

    Regular expression query

    Martin Biddiscombe, Feb 3, 2006, in forum: Python
    Replies:
    4
    Views:
    510
    bruno at modulix
    Feb 6, 2006
  5. Replies:
    6
    Views:
    800
  6. Raymond Schanks
    Replies:
    0
    Views:
    889
    Raymond Schanks
    Aug 3, 2010
  7. George

    Regular Expression Query

    George, Jan 24, 2005, in forum: Perl Misc
    Replies:
    4
    Views:
    179
    Gunnar Hjalmarsson
    Jan 24, 2005
  8. Devon_Dan

    A regular expression query

    Devon_Dan, Apr 23, 2007, in forum: Perl Misc
    Replies:
    2
    Views:
    144
    Devon_Dan
    Apr 23, 2007
Loading...