Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 48476 invoked from network); 11 May 2010 15:22:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 15:22:06 -0000 Received: (qmail 63268 invoked by uid 500); 11 May 2010 15:22:06 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 63245 invoked by uid 500); 11 May 2010 15:22:06 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 63237 invoked by uid 99); 11 May 2010 15:22:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 15:22:06 +0000 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kwsutter@gmail.com designates 209.85.212.46 as permitted sender) Received: from [209.85.212.46] (HELO mail-vw0-f46.google.com) (209.85.212.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 15:22:01 +0000 Received: by vws17 with SMTP id 17so1203329vws.33 for ; Tue, 11 May 2010 08:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Y2+ClpT5KelTSe0ExY5hRmbqQbwD3D0J63du00nVXZU=; b=p+f8q+QlAopGNnzwLPED9H9CBBCvXCsu9rWBPrDfzsvbL4yIkFGFKGobrj6xT9mluG x9CoEIAyA/FAJjFoB3dY367Gj+CIMhbXMeWTBRDONnztmUn7gd01tjesIsnrwxbqWLwX xLuHuN+Ws08H+3c2YYhrKymbOgnV5VEZpEAok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WdkQMF0aT7/PrtYcOlzqlyjzUqMBFlnTetioPFilx2xhsvF3ZsqFnYq2v8T46H7mfp 250gs88Dd/1C32mlvItCttZVKDj6M7vMWbTS8WdWW8EzPtV6Qw8FKazfGAcbmx9xAEVo PTJEij59bLeaclT4thj9QiEO6Ntsu2f7lTU1g= MIME-Version: 1.0 Received: by 10.220.107.71 with SMTP id a7mr4527458vcp.111.1273591300421; Tue, 11 May 2010 08:21:40 -0700 (PDT) Received: by 10.220.75.196 with HTTP; Tue, 11 May 2010 08:21:40 -0700 (PDT) In-Reply-To: References: <00b401caf113$f9331e70$eb995b50$@com> Date: Tue, 11 May 2010 10:21:40 -0500 Message-ID: Subject: Re: JPA 3.0 From: Kevin Sutter To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=00c09f9057610cf8fb0486531550 --00c09f9057610cf8fb0486531550 Content-Type: text/plain; charset=ISO-8859-1 Hi Christopher, You're right, annotations can be verbose. But, they don't have to be. It all depends on whether your application can live with the default processing defined by the spec. We tried to pick the most common default values for the various annotation elements. If your application can live with the default processing, then all that is really necessary is the @Entity and @Id annotations. But, most legacy applications and schemas can not live with the default settings, thus the annotations can become verbose. Flexibility can be a killer... But, then we'd be crucified if we didn't allow for the flexibility... :-) The annotations can also be overridden via orm.xml declarations. This would keep your base code more readable, while putting the detailed gorp into the xml file(s). Maybe this would be more suitable for your environment. Not sure what you mean by "fluent API". Any specific examples to help with this discussion? Thanks, Kevin On Tue, May 11, 2010 at 10:10 AM, Christopher Gardner < chris.r.gardner@gmail.com> wrote: > Vis-a-vis all JPA specs, streamlining annotations would be nice. The > annotations can be verbose. Maybe a fluent API would be in order. > > On Tue, May 11, 2010 at 10:46 AM, Kevin Sutter wrote: > > > Hi Chris, > > Sorry to hear that you are frustrated with JPA 2.0. Can you elaborate? > > The > > JPA Expert Group is currently soliciting feedback for the next revision > of > > the JPA spec (2.x or 3.0). Here's the e-mail address for this > > correspondence [1]. But, if there are distinct improvements that are you > > looking for, maybe they could be entertained by the OpenJPA community > > first. Bugs and/or Features can be entered into our JIRA system [2] for > > future consideration. Of course, community involvement can help speed up > > this process. > > > > Thanks for the input, > > Kevin > > > > [1] jsr-317-feedback@sun.com > > [2] https://issues.apache.org/jira/browse/OPENJPA > > > > On Tue, May 11, 2010 at 9:12 AM, C N Davies wrote: > > > > > I'm so frustrated by JPA 2.0 but can't seem to find an JSR for JPA 3 or > > > anything. Can anyone point me it? > > > > > > > > > > > > Thanks J > > > > > > > > > > > > Chris > > > > > > > > > > > > > > > --00c09f9057610cf8fb0486531550--