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 E0E22108CC for ; Mon, 8 Jul 2013 14:09:53 +0000 (UTC) Received: (qmail 12665 invoked by uid 500); 8 Jul 2013 14:09:53 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 12494 invoked by uid 500); 8 Jul 2013 14:09: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 12082 invoked by uid 99); 8 Jul 2013 14:09:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jul 2013 14:09:48 +0000 Date: Mon, 8 Jul 2013 14:09:48 +0000 (UTC) From: "Luca Masini (JIRA)" To: dev@openjpa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (OPENJPA-2408) CLONE - 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 Luca Masini created OPENJPA-2408: ------------------------------------ Summary: CLONE - Merge of lazily fetched fields, and merge of managed entities deviates from spec Key: OPENJPA-2408 URL: https://issues.apache.org/jira/browse/OPENJPA-2408 Project: OpenJPA Issue Type: Bug Components: jdbc Affects Versions: 2.1.0, 2.2.0 Reporter: Luca Masini Assignee: Rick Curtis Fix For: 2.2.0 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. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira