Dont flush in postPersist and postUpdate but in postFlush.