Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328548 - SessionCustomizer: PostDatabaseMigrated needed
Summary: SessionCustomizer: PostDatabaseMigrated needed
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-24 10:41 EDT by Christopher Klein CLA
Modified: 2022-06-09 10:28 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 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