spring-projects / spring-data-examples

Spring Data Example Projects
Apache License 2.0
5.18k stars 3.39k forks source link

JDBC let example.springdata.jdbc.basics.aggregate.AggregateConfiguration use BeforeConvertEvent #599

Closed schauder closed 3 years ago

schauder commented 3 years ago

This was surfaced by https://github.com/spring-projects/spring-data-jdbc/issues/902

Currently BeforeSaveEvent is used which only works accidentally because mutable entities are used. The correct event to use is BeforeConvertEvent

This depends on https://github.com/spring-projects/spring-data-jdbc/issues/910 Which actually throws the event in the first place.