-
Notifications
You must be signed in to change notification settings - Fork 683
Lambda entity callbacks no longer invoked #2853
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
Comments
Sorry for inconvenience, this is a regression from #2812. Please avoid lambdas as workaround. |
The difference between our tests stems from our tests using |
Another workaround is moving the lambda callbacks into a non- |
Here's a reduced reproducer that walks through bean definitions and prints their type to the console: https://gist.github.com/mp911de/435d0b8259ac41671edbd40aaae4c8ba |
Using merged bean definitions is actually doing what we're looking for. |
We now use the merged bean definition to resolve the defined EntityCallback type. Previously, we used just the bean definition that might have contained no type hints because of ASM-parsed configuration classes. Closes #2853
We now use the merged bean definition to resolve the defined EntityCallback type. Previously, we used just the bean definition that might have contained no type hints because of ASM-parsed configuration classes. Closes #2853
We now use the merged bean definition to resolve the defined EntityCallback type. Previously, we used just the bean definition that might have contained no type hints because of ASM-parsed configuration classes. Closes #2853
Hi everyone,
as mentioned on stackoverflow issue the behaviour of spring-data-jdbc changed.
If you wanted to use a BeforeConvertCallback to assign a custom id to an entity, you could do this in spring boot versions up to 3.0.5. But later versions, 3.1.0 for example, do not use this callback anymore.
A repo to reproduce: Repo. If something is unclear, don't hesitate to reach out to me.
best regards
hubert
The text was updated successfully, but these errors were encountered: