After the get action, we get the existing entity. After setting id to null, why is not created a new entity after saving action
Class A
....
A a = aRepository.findById(id);
a.setId(null);
A copiedA = aRepository.save(a);
copiedA is not a new entity. Both have the same id;