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 B49A3E45C for ; Sun, 10 Mar 2013 17:47:12 +0000 (UTC) Received: (qmail 43104 invoked by uid 500); 10 Mar 2013 17:47:12 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 43068 invoked by uid 500); 10 Mar 2013 17:47:12 -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 43055 invoked by uid 99); 10 Mar 2013 17:47:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Mar 2013 17:47:12 +0000 Date: Sun, 10 Mar 2013 17:47:12 +0000 (UTC) From: "Guillaume Chauvet (JIRA)" To: dev@openjpa.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (OPENJPA-2349) DetachCopy : association not null when cascade detach not set 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-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Chauvet updated OPENJPA-2349: --------------------------------------- Attachment: OPENJPA-2349-FIX.patch Attached please find a patch to correct this bug. > DetachCopy : association not null when cascade detach not set > ------------------------------------------------------------- > > Key: OPENJPA-2349 > URL: https://issues.apache.org/jira/browse/OPENJPA-2349 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.1.0, 2.1.1, 2.2.0, 2.2.1 > Reporter: Guillaume Chauvet > Priority: Minor > Attachments: OPENJPA-2349-FIX.patch, openjpa-2349.zip > > > When we detached a copy of a managed entity who contains a one-to-many association with the detach cascade not specified, the managed copy always contains the association with these children entities. > Attached please find a draft including a unitary test capable of systematically reproducing this potential problem. -- 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