Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 34618 invoked from network); 15 Feb 2009 22:55:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2009 22:55:20 -0000 Received: (qmail 87943 invoked by uid 500); 15 Feb 2009 22:55:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 87934 invoked by uid 500); 15 Feb 2009 22:55:20 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 87920 invoked by uid 99); 15 Feb 2009 22:55:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 14:55:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 22:55:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C7C52234C48B for ; Sun, 15 Feb 2009 14:54:59 -0800 (PST) Message-ID: <227367996.1234738499803.JavaMail.jira@brutus> Date: Sun, 15 Feb 2009 14:54:59 -0800 (PST) From: "Benson Margulies (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-2041) XmlTransient annotation seems to be ignored In-Reply-To: <703038927.1234701899635.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benson Margulies resolved CXF-2041. ----------------------------------- Resolution: Invalid You're welcome. > XmlTransient annotation seems to be ignored > ------------------------------------------- > > Key: CXF-2041 > URL: https://issues.apache.org/jira/browse/CXF-2041 > Project: CXF > Issue Type: Bug > Components: JAXB Databinding > Affects Versions: 2.1.4 > Environment: Spring 2.5.6 > Reporter: Kariem Hussein > Attachments: test-cxf-xmltransient-2.zip, test-cxf-xmltransient.zip > > > Properties marked with @XmlTransient should be prevented from being mapped to XML. For two objects with a parent-child relationship where the object references are bi-directional, properties annotated accordingly should be ignored during marshalling. I have tried different options, but could never observe that @XmlTransient is actually taken into account. > # examples in peudo-code (test project will be attached) > Models: > class Parent { > List children; > } > class Child { > @XmlTransient // <-- annotated to exclude this property from XML marshalling > Parent parent; > } > Test: > testMarshalling { > Parent p = new Parent(); > Child c = new Child(); > c.setParent(p); > p.setChildren(Arrays.asList(c)); > doSomethingViaWebService(p); // <-- throws Exception here > } > I could imagine that some problems arise when using another spring version than the one packaged with CXF, but I think there should not be issues in such a limited scenario. Either the documentation is missing important parameters or there is actually a problem somewhere. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.