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 4086FF11 for ; Wed, 20 Apr 2011 13:13:44 +0000 (UTC) Received: (qmail 2434 invoked by uid 500); 20 Apr 2011 13:13:44 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 2407 invoked by uid 500); 20 Apr 2011 13:13:44 -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 2399 invoked by uid 99); 20 Apr 2011 13:13:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 13:13:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 13:13:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AB47CAA078 for ; Wed, 20 Apr 2011 13:13:05 +0000 (UTC) Date: Wed, 20 Apr 2011 13:13:05 +0000 (UTC) From: "Rick Curtis (JIRA)" To: dev@openjpa.apache.org Message-ID: <1270868816.69834.1303305185683.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <836803449.67999.1303242725700.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (OPENJPA-1983) Merge of lazily fetched fields, and merge of managed entities deviates from spec MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Curtis updated OPENJPA-1983: --------------------------------- Affects Version/s: 2.2.0 Fix Version/s: 2.2.0 > Merge of lazily fetched fields, and merge of managed entities deviates from spec > -------------------------------------------------------------------------------- > > Key: OPENJPA-1983 > URL: https://issues.apache.org/jira/browse/OPENJPA-1983 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Affects Versions: 2.1.0, 2.2.0 > Reporter: Pradyumna Achar > Assignee: Rick Curtis > Fix For: 2.2.0 > > Attachments: Inner.java, OPENJPA-1983.patch, Outer.java, TestLazyFields.java > > > Attached is a test case that illustrates this fail (You can place it into openjpa-persistence-jdbc/src/test/java/org.apache.openjpa.persistence.merge) > Problem 1: Section 3.2.7.1 (Merging Detached Entity State) of the specification says that "The persistence provider must not merge fields marked LAZY that have not been fetched: it must ignore such fields when merging.". The attached test case illustrates that OpenJPA 2.1.0 does not ignore fields marked LAZY that have not been fetched. > Problem 2: In the same section, the specification says "If X is a managed entity, it is ignored by the merge operation...". But OpenJPA 2.1.0 doesn't seem to ignore them. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira