Bug 346545 - Objects Created by CopyGroup have FetchGroup attached which prevents JAXB marshalling
Summary: Objects Created by CopyGroup have FetchGroup attached which prevents JAXB mar...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 17:23 EDT by Shaun Smith CLA
Modified: 2022-06-09 10:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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