Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 51732 invoked from network); 14 Nov 2006 12:07:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2006 12:07:05 -0000 Received: (qmail 57538 invoked by uid 500); 14 Nov 2006 12:07:16 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 57437 invoked by uid 500); 14 Nov 2006 12:07:15 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 57422 invoked by uid 99); 14 Nov 2006 12:07:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 04:07:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [216.199.14.26] (HELO www3.mousetech.com) (216.199.14.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 04:07:01 -0800 Received: from [192.168.0.250] (mail.mousetech.com [216.199.14.19] (may be forged)) (authenticated bits=0) by www3.mousetech.com (8.13.1/8.13.1) with ESMTP id kAEC644x006824; Tue, 14 Nov 2006 07:06:08 -0500 Message-ID: <4559B12C.8000906@mousetech.com> Date: Tue, 14 Nov 2006 07:06:04 -0500 From: Tim Holloway User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: Abe White CC: open-jpa-dev@incubator.apache.org Subject: Re: Mapping References: <45546E53.4070909@mousetech.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Abe White wrote: >> 1. The reverse mapping tool creates an orm.xml but not annotations on >> generated Java code. Any plans on this? >> >> 2. I fed an orm.xml to Hibernate 3. It works, but if Hibernate is >> clever enough to automatically translate between camelCase Java names >> and underscore-punctuated database names, it's beyond my limited >> skill. I had to manually insert name elements into the orm.xml for >> complex table and column definitions to make it function. It's good >> that openjpa is smarter than that, but on the whole, I think I'd >> prefer the more complete orm definition - or at least an option for >> it. For one thing, I'm not sure what the implications are when people >> start meddling with the generated items and define a situation where >> there's no simple algorithmic conversion between Java name and the >> database name. > > Are you saying that the orm.xml generated by the reverse mapping tool > did not have the table and column names set, wherever those names > differed from the JPA default for the generated class/field name? > Could you post an example class and the generated orm.xml? > _______________________________________________________________________ > Notice: This email message, together with any attachments, may contain > information of BEA Systems, Inc., its subsidiaries and affiliated > entities, that may be confidential, proprietary, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error, please immediately return this > by email and then delete it. Here's the original, straight from the reverse mapping tool: com.mousetech.persist PROPERTY Here's what I had to do to make it work. I temporarily removed the one-to-many references to simplify getting onlone: com.mousetech.persist PROPERTY