T
traneHead
Trying to use a named query put in a hbm like:
<query name="Point.findByTitle">
from Point point where point.title like :title
<query-param name="title" type="String" />
</query>
except I'd like to put wildcards on the named parameter like '%:title
%' but then I get a IAE: "No positional parameters in query"
so I'm guessing that the :title parameter isn't discovered by
hibernate then. I've tried different methods of escaping the % and
other esoteric formatting but no-go...
Any suggestions on how to do this?
<query name="Point.findByTitle">
from Point point where point.title like :title
<query-param name="title" type="String" />
</query>
except I'd like to put wildcards on the named parameter like '%:title
%' but then I get a IAE: "No positional parameters in query"
so I'm guessing that the :title parameter isn't discovered by
hibernate then. I've tried different methods of escaping the % and
other esoteric formatting but no-go...
Any suggestions on how to do this?