Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346545

Summary: Objects Created by CopyGroup have FetchGroup attached which prevents JAXB marshalling
Product: z_Archived Reporter: Shaun Smith <shaun.smith>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P2 CC: tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Shaun Smith CLA 2011-05-19 17:23:52 EDT
Objects created by a CopyGroup have the CopyGroup attached to them.  This is generic AttributeGroup behavior designed to support the serialization of partial objects to a client and then back to the server for merge using the AttributeGroup.

Unfortunately, attempts to marshall such a copy with JAXB can result in an exception due to the presence of the CopyGroup.  For example, when JAXB calls a getter (it attempts to marshall all attributes by default) for a relationship an exception is thrown indicating the object is detached and the relationship cannot be resolved.

AttributeGroup should support suppression of the attachment (leaving the woven instance variable null) to support serialization by JAXB and other frameworks that are not aware of/expecting AttributeGroups.
Comment 1 Tom Ware CLA 2011-05-31 09:42:52 EDT
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:15:59 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:25:50 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink