Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 84406 invoked from network); 25 Oct 2007 14:59:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 14:59:35 -0000 Received: (qmail 53427 invoked by uid 500); 25 Oct 2007 14:59:22 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 53407 invoked by uid 500); 25 Oct 2007 14:59:22 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 53397 invoked by uid 99); 25 Oct 2007 14:59:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 07:59:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 25 Oct 2007 14:59:22 +0000 Received: (qmail 32484 invoked from network); 25 Oct 2007 14:59:02 -0000 Received: from unknown (HELO ??????h?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 25 Oct 2007 14:59:02 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <4720B8C2.3070701@gmail.com> References: <471F9A49.8050109@secad.to.gov.br> <3DDEA9D8-9F97-464F-BEE6-D6B9C0BD697E@objectstyle.org> <4720B8C2.3070701@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1FD11883-5542-49B0-955B-EAADE6F2787B@objectstyle.org> Content-Transfer-Encoding: 7bit From: Andrus Adamchik Subject: Re: Cayenne POJO enhancer Date: Thu, 25 Oct 2007 17:58:59 +0300 To: user@cayenne.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Oct 25, 2007, at 6:39 PM, Gilberto C Andrade wrote: > So, this is a good chance to help cayenne. Or are you suggesting > another > one (OpenJPA, Hibernate, TopLink, etc). Hehe, of course I'll suggest to help Cayenne, but you've been warned ;-) In other words if that's an offer to work together with Cayenne developers to address the things missing or broken in the JPA provider, we will gladly accept such help. > But, I can map those pojos to jpa config file by hand, can't I? I am not a Hibernate expert, so I don't know if there's one-to-one mapping between Hibernate and JPA annotations across the board. But it appears that there is at least a close match. From your example: Hibernate: @hibernate.id generator-class="sequence" column="cdarea" unsaved- value = "null" @hibernate.generator-param name = "sequence" value = "scc.scc_area_sequence" JPA: @SequenceGenerator(name="scc_area_sequence", sequenceName="scc.scc_area_sequence") Unfortunately this is also an example of an annotation currently ignored by Cayenne provider (i.e. the one that still needs to be bridged with Cayenne runtime), so that gives a glimpse of the limitations you'll have to deal with. As for the documentation, I suggest the JPA spec [1] for the full list of annotations. There's also a number of recent books on EJB3 and more specifically JPA. Andrus [1] http://jcp.org/en/jsr/detail?id=220