Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 37AF910211 for ; Sat, 31 Aug 2013 15:22:58 +0000 (UTC) Received: (qmail 26220 invoked by uid 500); 31 Aug 2013 15:22:57 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 25981 invoked by uid 500); 31 Aug 2013 15:22:53 -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 25954 invoked by uid 99); 31 Aug 2013 15:22:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 Aug 2013 15:22:51 +0000 Date: Sat, 31 Aug 2013 15:22:51 +0000 (UTC) From: "Sebastian Laag (JIRA)" To: dev@openjpa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (OPENJPA-2424) Classes are enhanced multiple times in a multi persistence-unit project MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sebastian Laag created OPENJPA-2424: --------------------------------------- Summary: Classes are enhanced multiple times in a multi persistence-unit project Key: OPENJPA-2424 URL: https://issues.apache.org/jira/browse/OPENJPA-2424 Project: OpenJPA Issue Type: Bug Components: Enhance Affects Versions: 2.2.2 Environment: Windows 7 JDK 1.7 Maven 3.0.5 Reporter: Sebastian Laag We use the above environment to build our project. We use the openjpa-maven-plugin for the enhancement of the JPA classes. The persistence.xml configures 4 persistence-units for different database connections. Every persistence-unit defines own classes and uses the exclude-unlisted-classes Tag, because we only want every class to be enhanced only once. Now if we execute mvn install every defined class will be enhanced 4 times. The persistence.xml looks like this. ClassA true ...some properties for the connection... ClassB true ...some properties for the connection... ClassC true ...some properties for the connection... ClassD true ...some properties for the connection... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira