I've noticed a very strange behavior with the save(T entity) in the spring-data JpaRepository.
I have the entity Foo foo and I'm trying to save it with repository fooRepository.save(foo).
My issue is, the after saving, the instance of foo that I'm passing to the save() method is changed. I do not expect this, and I'm very strange that I can't find any issue related to it.
Is this the expected behavior?