On Fri, Sep 12, 2008 at 9:46 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On Fri, Sep 12, 2008 at 2:04 AM, Emmanuel Venisse > <[EMAIL PROTECTED]> wrote: > > On Fri, Sep 12, 2008 at 6:58 AM, Rahul Thakur > > >> Emmanuel, I am not sure I understand - where did you find sql in the > >> code? I think we have discussed the approached a few times on this > >> list but your comment above sounds like you didn't quite grasp the > >> motivation behind it. > > > > Not sql but JPQL. For example in toString method in > > > https://svn.apache.org/repos/asf/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/ProjectGroupQuery.java > > > > You're probably right, I don't grasp the motivation and I don't really > like > > all string concatenations in toString() methods. > > Emmanuel, can you link to the equivalent (or a similar) query on your > branch so we can see how it compares? In my branch, I use @NamedQueries annotations on the class, for example: http://svn.apache.org/repos/asf/continuum/branches/continuum-jpa-evenisse/src/main/java/org/apache/continuum/model/project/ProjectGroup.java http://svn.apache.org/repos/asf/continuum/branches/continuum-jpa-evenisse/src/main/java/org/apache/continuum/model/project/Project.java > > > Thanks, > -- > Wendy >
