He is using a period.
So for an entity of Foo, the name query would be
@NamedQuery(name="Foo.query",
query ="select f from foo f")
Dain Sundstrom wrote:
> On Feb 15, 2007, at 5:19 PM, Lance J. Andersen wrote:
>
>>> Yes. The best we could do is to make a recommendation that users
>>> guarantee uniqueness of names by prepending the entity name to the
>>> query name.
>>>
>> This is exactly what Mike Keith recommends in his book Pro EJB 3 Java
>> Persistence API
>
> Do you know which character he uses as the separator? I'm using a
> period, but if everyone else is using say '#', I can change my code
> generator.
>
> -dain
|