>>> Trying to use a named query put in a hbm like:
>>> <query name="Point.findByTitle">
[quoted text clipped - 8 lines]
> None in this example.
> Why? Does it have anything to do with the wildcard question?
Because it caught my eye, and I was curious. Usually an alias table name is a
shorter version, so the duplication stood out for me.
This is a discussion group. I was discussing.

Signature
Lew
traneHead - 24 Sep 2007 18:51 GMT
> >>> Trying to use a named query put in a hbm like:
> >>> <query name="Point.findByTitle">
[quoted text clipped - 16 lines]
> --
> Lew
OK, no the example query might as well (and should) be written 'from
Point where title like :title', the aliasing was a leftover from
copying/pasting/deleting (although not enough of the latter
apparently ;))
Lew - 24 Sep 2007 22:22 GMT
> 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>
I reviewed the Java Persistence API today. Looks to me like :varName is a
syntax for a variable only; there is no concatenation to surrounding tokens.
You will have to include the wildcard ('%') in the substitution value for the
named parameter.

Signature
Lew
traneHead - 25 Sep 2007 22:35 GMT
> > Trying to use a named query put in a hbm like:
> > <query name="Point.findByTitle">
[quoted text clipped - 9 lines]
> --
> Lew
Thank you. That's the way.