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

Bug 328548

Summary: SessionCustomizer: PostDatabaseMigrated needed
Product: z_Archived Reporter: Christopher Klein <christopher.klein>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: fs5
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Christopher Klein CLA 2010-10-24 10:41:23 EDT
Build Identifier: latest

Would you please implement an event for Unit of Work like "PostDatabaseMigrated".
This event has to be executed *after* any ALTER/CREATE TABLE/SQL DDL statements by EclipseLink were executed.

* EclipseLink startup
* Compare current tables in database with @Entity annotated classes
* If needed, execute changes on tables
* Execute PostDatabaseMigrated hook
 * (mine) -> execute own SQL statements
* Startup rest of application (controllers etc.)

I need this enhancement for implementing an event listener which creates  SL table views which depends on updated  tables. The use of PostLogin event (http://onpersistence.blogspot.com/2010/03/running-sql-script-on-startup-in.html) is insufficient, because changes to tables did not happen at this time.

Thanks in advance,
Christopher

Reproducible: Always

Steps to Reproduce:
1. not implemented yet
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:28:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink