Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312909 - Cache CoordinationType issue of the subclass
Summary: Cache CoordinationType issue of the subclass
Status: CLOSED WORKSFORME
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: David Minsky CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 10:24 EDT by Daniel Lo CLA
Modified: 2022-06-09 10:10 EDT (History)
2 users (show)

See Also:


Attachments

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