I don't think you need this, I think it happens automagically when you persist the entity.