The attached test-case shows that we get an TransientPropertyValueException when saving an entity, even though the referenced entity is clearly persisted before and should not be regarded as transient.
The bug seems to be introduced by and is closely related to that issue.
The new issues seems to appear when one entity is cached but the referenced entity is not (causing different DelayedPostInsertIdentifier handling for the two entities).
Spring-Boot 2.1, Java 8, Windows 10, H2DB
We're going to revert and all related fixes since to restore legacy behavior. We'll reapproach the changes needed for another way.
, this will need to be addressed in 5.3 branch as well. Please let me know exactly which issues need to be backported.
, would it help if I just create a PR for 5.3 with all the necessary backports for you and let you review that? It wouldn't take very long for me to put that together if that would be much easier for you.
Fixed in 5.3 branch as well.