continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Venisse" <emmanuel.veni...@gmail.com>
Subject Re: which jpa branch is active?
Date Sat, 13 Sep 2008 05:30:06 GMT
On Fri, Sep 12, 2008 at 9:46 PM, Wendy Smoak <wsmoak@gmail.com> wrote:

> On Fri, Sep 12, 2008 at 2:04 AM, Emmanuel Venisse
> <emmanuel.venisse@gmail.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message