Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SessionEventListener: add pre/post flush() events #1240

Closed
patric-r opened this issue Aug 11, 2021 · 1 comment · Fixed by #1978
Closed

SessionEventListener: add pre/post flush() events #1240

patric-r opened this issue Aug 11, 2021 · 1 comment · Fixed by #1978

Comments

@patric-r
Copy link

patric-r commented Aug 11, 2021

Hi,

EclipseLink thankfully has the incredibly useful concept of a SessionEventListener to react on certain events before or after they actually happen.

Unfortunately, it does not declare events regarding to flushing of the UnitOfWork/EntityManager.
Would it be possible to add the two methods (preFlushUnitOfwork/postFlushUnitOfWork) to the interface?

See also this more than 10 year old feature request:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=332723

Thanks!

@patric-r
Copy link
Author

Can I get an update on this, please?

rfelcman pushed a commit that referenced this issue Nov 8, 2023
* Fixes #1240 : SessionEventListener: add pre/post flush() events
- added preFlushUnitOfWork/postFlushUnitOfWork events
- removed preCommitUnitOfWork event from flush in UnitOfWorkImpl
- added unitTests for flush events

Signed-off-by: Patrick Schmitt <[email protected]>
rfelcman pushed a commit that referenced this issue Nov 8, 2023
Fixes #1240 : SessionEventListener: add pre/post flush() events
- added preFlushUnitOfWork/postFlushUnitOfWork events
- removed preCommitUnitOfWork event from flush in UnitOfWorkImpl
- added unitTests for flush events

Signed-off-by: Patrick Schmitt <[email protected]>
Zuplyx added a commit to Zuplyx/eclipselink that referenced this issue Jun 20, 2024
…nts (eclipse-ee4j#1978)

* Fixes eclipse-ee4j#1240 : SessionEventListener: add pre/post flush() events
- added preFlushUnitOfWork/postFlushUnitOfWork events
- removed preCommitUnitOfWork event from flush in UnitOfWorkImpl
- added unitTests for flush events

Signed-off-by: Patrick Schmitt <[email protected]>
(cherry picked from commit 5db018c)
rfelcman pushed a commit that referenced this issue Jun 20, 2024
…rt from master (#2178)

* Fix #1240: SessionEventListener: add pre/post flush() events (#1978)
- added preFlushUnitOfWork/postFlushUnitOfWork events
- removed preCommitUnitOfWork event from flush in UnitOfWorkImpl
- added unitTests for flush events

Signed-off-by: Patrick Schmitt <[email protected]>
(cherry picked from commit 5db018c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant