Well you should not be trying to "undo" or rollback the NUMBER_GET_NEXT. Just provide the user with the information that the ID is not generated yet until saving. That should be the best approach, you will generate the ID just after the validations, if everything is ok and you are about to save the object
↧