save() and saveAndFlush() in Spring Data JPA both can return Entity ID.
As far as I search save() method shouldn't be able to return any value until it called by flush() and commit(). But I can be able to get Entity ID with save() method just like saveAndFlush().
When I implement JpaRepository and call save() and saveAndFlush() methods I've got Entity IDs for both of them.
So my question is how is it possible? Is it because of the @Transacitonal of save() method? And if it is, is there really any difference between those two methods at this point?