I use period also in my examples: Query q = em.createQuery("Person.findAll");
We actually came up with this convention before the spec went out. Bummer that we didn't just fix the spec. -Patrick -- Patrick Linskey BEA Systems, Inc. _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. > -----Original Message----- > From: Dain Sundstrom [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 15, 2007 5:39 PM > To: open-jpa-dev@incubator.apache.org > Subject: Re: JPA spec wierdism? > > 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 >