Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 93324 invoked from network); 20 Aug 2009 19:40:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Aug 2009 19:40:20 -0000 Received: (qmail 90011 invoked by uid 500); 20 Aug 2009 19:40:39 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 89985 invoked by uid 500); 20 Aug 2009 19:40:39 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 89973 invoked by uid 99); 20 Aug 2009 19:40:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 19:40:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 19:40:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 148D1234C1E9 for ; Thu, 20 Aug 2009 12:40:15 -0700 (PDT) Message-ID: <914648106.1250797215083.JavaMail.jira@brutus> Date: Thu, 20 Aug 2009 12:40:15 -0700 (PDT) From: "CRG (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-1257) Improved Naming Strategy a la Hibernate MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Improved Naming Strategy a la Hibernate --------------------------------------- Key: OPENJPA-1257 URL: https://issues.apache.org/jira/browse/OPENJPA-1257 Project: OpenJPA Issue Type: Improvement Reporter: CRG Hibernate has a naming strategy, org.hibernate.cfg.ImprovedNamingStrategy, that knows how to convert camel cased Java class names and property names to underscored table and column names and vice versa. Consequently, if Hibernate can do a one-to-one mapping, you don't have to necessarily use the @Table and @Column annotations for everything. I saw that OpenJPA has a MappingDefaults interface, which looks to offer something like this. Michael Dick has said he is not aware of anything built in to OpenJPA that generates underscored names, and it seems like that a variation on the MappingDefaults.removeHungarianNotation property might be a solution. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.