Skip to content

DATAJDBC-263 - publish events for @Query annotated methods #94

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

Conversation

maciejwalkowiak
Copy link
Contributor

That's my first PR to Spring Data JDBC so I hope I got the project right.

This change causes framework to trigger AfterLoadEvent for all entities loaded using @Query annotated methods in repositories.

Since there is some overlap between publishing events in JdbcAggregateTemplate and JdbcRepositoryQuery perhaps it's a good idea to extract something like EntityEventPublisher that would have access to RelationalMappingContext.

schauder pushed a commit that referenced this pull request Oct 15, 2018
schauder added a commit that referenced this pull request Oct 15, 2018
Improved formatting, added author tags and issue comments.
Changed "entity" to "aggregate" in test names to make it more precise.

Original pull request: #94.
schauder pushed a commit that referenced this pull request Oct 15, 2018
schauder added a commit that referenced this pull request Oct 15, 2018
Improved formatting, added author tags and issue comments.
Changed "entity" to "aggregate" in test names to make it more precise.

Original pull request: #94.
@schauder
Copy link
Contributor

I polished and merged it.
Thanks for the fix.

@schauder schauder closed this Oct 15, 2018
@maciejwalkowiak
Copy link
Contributor Author

Thanks!

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