Affects Version/s: 2.1.10 (Lovelace SR10)
Fix Version/s: None
I have such base entity class with private version property:
When I try to delete entity (which is actually uninitialized hibernate proxy) by entity repository, the deletion does not occur.
detects that entity is new entity.
But if I try to delete implementation of proxy then the deletion occurs as expected.
In attached project you could find two test cases to reproduce issue.
In the first test case, an attempt is made to delete a proxy. (fail)
In the second test case, an attempt is made to delete a unproxy entity. (success)
Issue reproduces in versions of spring.data.releasetrain.version Lovelace-SR10 and Lovelace-SR9.
Before version Lovelace-SR9 both test cases complete successfully.