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

Bug 312909

Summary: Cache CoordinationType issue of the subclass
Product: z_Archived Reporter: Daniel Lo <daniel.lo>
Component: EclipselinkAssignee: David Minsky <david.minsky>
Status: CLOSED WORKSFORME QA Contact: Project Inbox <eclipselink.orm-inbox>
Severity: normal    
Priority: P2 CC: david.minsky, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Daniel Lo CLA 2010-05-14 10:24:12 EDT
The subclass' coordinationType is set to the default SEND_OBJECT_CHANGES instead of using the parent's coordinationType(SEND_NEW_OBJECTS_WITH_CHANGES for example), in another word, if an entity has a parent class, then its coordinationType is stucked to SEND_OBJECT_CHANGES, EclipseLink does not process the cache coordination by using its parent's coordinationType.

For example, if the Specification super class has the following cache configuration:
@Cache (
type=CacheType.FULL,
expiry=-1,
alwaysRefresh=false,
disableHits=false,
size=200,
coordinationType=CacheCoordinationType.SEND_NEW_OBJECTS_WITH_CHANGES
)

Then the subclass EquipmentSpecification cache coordination is always processed as SEND_OBJECT_CHANGES instead of SEND_NEW_OBJECTS_WITH_CHANGES.
Comment 1 Tom Ware CLA 2010-05-28 14:45:08 EDT
Setting target and priority.  See the following page for details of what this means:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 David Minsky CLA 2012-01-16 16:58:06 EST
I looked into this issue, and could not reproduce this within EclipseLink trunk. It was observed that a subclass descriptor is initialized with the same CachePolicy cacheSynchronizationType as its parent descriptor, and new objects of the subclass type are sent with changes.

In EclipseLink 2.2, The CachePolicy class was added, and is initialized for a child descriptor within ClassDescriptor initialize(AbstractSession session)

Closing as closed, works for me; No additional fix code was added or changed in response to this bug.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:10:34 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink