persistence@glassfish.java.net

Re: _at_NamedQuery for finding details from more than 1 column

From: Wouter van Reeven <wouter_at_van.reeven.nl>
Date: Tue, 8 May 2007 23:00:54 +0200

On Tue, May 08, 2007 at 09:42:08PM +0200, Michael Bouschen wrote:
> I think your query works. The actual value of the input parameter might
> include the wild card, e.g. q.setParameter("param", "hello%").

Hmmm interesting thought. My experience so far with e.g. Oracle's ADF framework
has led me to believe that the % in the query will be taken literally since it's
part of the parameter and not concatted to the parameter. For some reason this
is different in ADF. I'll have a look at this to see what happens.


Thanks, Wouter

-- 
People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"