Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 23297 invoked from network); 8 Mar 2010 18:22:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Mar 2010 18:22:15 -0000 Received: (qmail 66823 invoked by uid 500); 8 Mar 2010 18:21:50 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 66775 invoked by uid 500); 8 Mar 2010 18:21:50 -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 66767 invoked by uid 99); 8 Mar 2010 18:21:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 18:21:50 +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; Mon, 08 Mar 2010 18:21:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 24266234C045 for ; Mon, 8 Mar 2010 18:21:27 +0000 (UTC) Message-ID: <390269587.139991268072487133.JavaMail.jira@brutus.apache.org> Date: Mon, 8 Mar 2010 18:21:27 +0000 (UTC) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Work started: (OPENJPA-1360) ReverseMappingTool omits nullable, length, etc. when ClassMapping.setEmbedded(true) is called In-Reply-To: <667878506.1256313299551.JavaMail.jira@brutus> 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 [ https://issues.apache.org/jira/browse/OPENJPA-1360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on OPENJPA-1360 started by Donald Woods. > ReverseMappingTool omits nullable, length, etc. when ClassMapping.setEmbedded(true) is called > --------------------------------------------------------------------------------------------- > > Key: OPENJPA-1360 > URL: https://issues.apache.org/jira/browse/OPENJPA-1360 > Project: OpenJPA > Issue Type: Bug > Components: tooling > Affects Versions: 1.2.2 > Reporter: Laird Nelson > Assignee: Donald Woods > Fix For: 1.3.0, 2.0.0 > > Attachments: OPENJPA-1360-trunk.patch > > > In my ReverseCustomizer, I call classMapping.setEmbedded(true). This is because for a variety of reasons I need the code that is generated by the ReverseMappingTool to be @MappedSuperclasses, not @Entities. > Indeed when I do this, the resulting class is a @MappedSuperclass (great!) BUT all of the length and nullable and other @Column attributes are missing. In other words, all simple fields receive only a @Basic annotation, with no attributes, and nothing else. In addition, the class declaration receives a @Table annotation with no attributes. (I'm using the command line flag that instructs the ReverseMappingTool to generate annotations.) > Ideally I'd like the generated source code to look identical to the source code that would be generated for a ClassMapping where setEmbedded(true) was never called, except of course that I want the @Entity annotation to be replaced with @MappedSuperclass. > Obviously if there is a better way from within a ReverseCustomizer for me to accomplish my (very odd) goals (mandated by a strange development process and a 30-year-old database), I am all ears. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.