Replace temporary ids in persisted entity snapshots after commit