On Fri, Jun 5, 2009 at 11:33 AM, Pinaki Poddar <[email protected]> wrote:

>
>
>  However, I had considered the facility slightly differently than yours.


Naturally, since you're a JPA expert and I'm just a lowly beginner... I was
just putting out a "sketch" to help folks understand what I was after.

>
> The primary feature that I considered important in this aspect is to
> dissociate my queries from the major compilation units.


By "major compilation units" do you mean "classes mostly of Java (and not
embedded SQL/JPQL)"?

>
>  How about the following
>  <property name="openjpa.NamedQueryRegistry"
> value="path/to/file/that/contains/NamedQueries.java"/>
>
>  and in code
>   Query q = em.createQuery("ANameThatAppearsInNamedQueryRegsitry");
>
> Not bad, so far. I imagine NamedQueries.java would implement some interface
that expects a return of a collection of NamedQueries or something?

-- 
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[email protected]

Reply via email to