Skip to content

Trigger BeforeConvertEvent when saving an aggregate. #913

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

Closed
wants to merge 2 commits into from

Conversation

schauder
Copy link
Contributor

The event had to change its API and inheritance structure.
I'd still include it in minor releases, because it wasn't used at all before.

@schauder schauder requested a review from mp911de January 15, 2021 09:04
@schauder schauder assigned schauder and mp911de and unassigned schauder Jan 15, 2021
@mp911de mp911de added this to the 2.0.7 (Neumann SR7) milestone Jan 18, 2021
@@ -23,7 +23,7 @@
* @since 1.1
* @author Jens Schauder
*/
public class BeforeConvertEvent<E> extends RelationalSaveEvent<E> {
public class BeforeConvertEvent<E> extends RelationalEventWithEntity<E> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the type hierarchy, especially when targeting backports is asking for trouble. The initial design of this class was already problematic as we never had an AggregateChange in the first place.

mp911de pushed a commit that referenced this pull request Jan 19, 2021
mp911de added a commit that referenced this pull request Jan 19, 2021
Reintroduce deprecated constructor to retain compile compatibility. Update Javadoc.

See #910
Original pull request: #913
mp911de pushed a commit that referenced this pull request Jan 19, 2021
mp911de added a commit that referenced this pull request Jan 19, 2021
Reintroduce deprecated constructor to retain compile compatibility. Update Javadoc.

See #910
Original pull request: #913
@mp911de
Copy link
Member

mp911de commented Jan 19, 2021

That's merged, polished, and backported now.

@mp911de mp911de closed this Jan 19, 2021
@mp911de mp911de deleted the issue/gh-910 branch January 19, 2021 08:46
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 this pull request may close these issues.

2 participants