-
Notifications
You must be signed in to change notification settings - Fork 37.7k
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
Preserve existing persistence context property value during AOT processing #29796
Preserve existing persistence context property value during AOT processing #29796
Conversation
Worth to review with @snicoll when he is back from PTO. @christophstrobl Is this PR ready for review for potential merge or do you plan further refinement? |
@sdeleuze you can review it already. Happy to modify if necessary. |
So it looks like something has post-processed the persistence context already and the core goes in the way. I think we need to fix this differently. If I understand correctly, Spring Data has knowledge of something that we don't. Why isn't that reflected in the |
There's an |
Spring Data is setting the property value for |
|
Thanks for the PR @christophstrobl but I think we should tackle this one differently. I've created #30476 |
The generated
CodeBlock
that takes care of injecting thePersistenceContext
may override an existing property value. This PR checks existing values and potentially omits creating the code block.Related to: spring-projects/spring-data-jpa#2753 & spring-projects/spring-data-commons#2760