Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 53149 invoked from network); 3 Jan 2007 21:23:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2007 21:23:55 -0000 Received: (qmail 57593 invoked by uid 500); 3 Jan 2007 21:24:02 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 57453 invoked by uid 500); 3 Jan 2007 21:24:01 -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 57444 invoked by uid 99); 3 Jan 2007 21:24:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 13:24:01 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of matthieu.riou@gmail.com designates 64.233.182.184 as permitted sender) Received: from [64.233.182.184] (HELO nf-out-0910.google.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jan 2007 13:23:52 -0800 Received: by nf-out-0910.google.com with SMTP id a4so7645898nfc for ; Wed, 03 Jan 2007 13:23:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=CjV02sWmCYitAMBsbs9v3mxvAzji14+MKU+4IYQ4mgNlHLLDD7+FzqEpsYCJ7YgNVyc3eDMD9+Ay3X0MNFzZX4xEdSTQll+rNMDxf4rRn0FNcEClTGGygpcS8BFlTGXd22Ik+EeOX9/CDi3ImDCs2HhPTNna+jl4dUBs5UW2brg= Received: by 10.49.92.18 with SMTP id u18mr5872798nfl.1167859411262; Wed, 03 Jan 2007 13:23:31 -0800 (PST) Received: by 10.49.60.20 with HTTP; Wed, 3 Jan 2007 13:23:31 -0800 (PST) Message-ID: Date: Wed, 3 Jan 2007 13:23:31 -0800 From: "Matthieu Riou" Reply-To: matthieu.riou@gmail.com To: open-jpa-dev@incubator.apache.org Subject: Configuration: either / or ? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2170_23909878.1167859411202" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2170_23909878.1167859411202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I've been fighting for some time now with my OpenJPA configuration and just discovered why. It seems that you *either* consider the persistence.xml file *or* the map passed as parameter of Persistence.createEntityManagerFactory. If you look at PersistenceProductDerivation.load(String rsrc, String name, Map m) (line 151), if the configuration provider can find a configuration file then the configuration is returned as is and the provided configuration Map doesn't even gets considered. My expectations would have been to have both the xml file and the map being used. One or the other can prevail if a property is defined twice but I think the map shouldn't be plainly ignored when provided. What do you think? Would that be a bug or is it the desired behavior? Thanks! Matthieu ------=_Part_2170_23909878.1167859411202--