You expect that a distinct row/route
is focused when you change the id
but it's not.
Any mutation on a persisted object causes its eligibility to update.
You always use the same route
reference, although you're mutating it by changing its id, causing an update each time after commit is made.
In reality, Hibernate makes an optimization after commit, to avoid those useless updates, since you precised a delete.
Those updates concerns the same row, explaining why after commit, just one delete occurs.