This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 211324 - Add additional event(s) support to the EclipseLink-ORM.XML Schema
Summary: Add additional event(s) support to the EclipseLink-ORM.XML Schema
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Guy Pelletier CLA
QA Contact:
URL:
Whiteboard: eclipselink-orm.xml
Keywords:
Depends on:
Blocks: 227219
  Show dependency tree
 
Reported: 2007-11-28 14:49 EST by Guy Pelletier CLA
Modified: 2022-06-09 10:07 EDT (History)
3 users (show)

See Also:


Attachments
Proposed changes (24.56 KB, patch)
2010-01-05 16:15 EST, Guy Pelletier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Pelletier CLA 2007-11-28 14:49:06 EST
 
Comment 1 Tom Ware CLA 2009-04-16 10:59:09 EDT
Updating priority due to revised bug categorization process.  See the following page for details:

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

If you feel the updated priority is incorrect, please send an email to eclipselink-users@eclipse.org.
Comment 2 Guy Pelletier CLA 2009-12-04 10:43:58 EST
Here is a grid of all EclipseLink events and those that are covered by the JPA spec. The extended column suggests the new events we should add.


TopLink event	         JPA event	Extended JPA (suggestions)	
-------------------------------------------------------------------------
pre-write	         n/a	        PreWrite	
post-write	         n/a	        PostWrite	
			
pre-delete	         n/a	        PreDelete	
pre-remove	         PreRemove	n/a	
post-delete	         PostRemove	n/a	
			
pre-insert	         n/a	        PreInsert	
pre-persist	         PrePersist	n/a	
post-insert	         PostPersist	n/a	
			
pre-update	         n/a	        PreUpdateNoChanges
pre-update-with-changes	 PreUpdate	n/a	
post-update	         PostUpdate	n/a	
			
about-to-insert	         n/a	        AboutToInsert
about-to-update	         n/a	        AboutToUpdate
about-to-delete	         n/a	        AboutToDelete
		
post-build	         n/a	        PostBuild
post-merge	         n/a	        PostMerge
		
post-clone	         PostLoad	PostClone
post-refresh	         PostLoad	PostRefresh
Comment 3 Guy Pelletier CLA 2009-12-08 08:51:01 EST
We will support classes that implement DescriptorEventListener in the EntityListeners list and add them to the list of listeners for that entity.
Comment 4 Guy Pelletier CLA 2010-01-05 16:15:04 EST
Created attachment 155374 [details]
Proposed changes
Comment 5 Guy Pelletier CLA 2010-01-05 16:18:00 EST
To note, no changes were made to the eclipselink-orm schema. This fix is purely within code to allow the recognition of entity listener classes that implement DescriptorEventListener and add them directly to the descriptor's event manager.
Comment 6 Guy Pelletier CLA 2010-01-06 10:18:08 EST
Changes submitted.

Reviewed by: Gordon Yorke
 
New test: No, but expanded existing tests:
testPrePersistBusOverrideAndAbstractInheritAndDefault - from LifecycleCallbackJunitTest
testCreateBusFueledVehicle - from EntityMappingsInheritanceJUnitTestCase
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:07:29 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink