CREATE GENERATOR GTBFOLPAG_VERBA_PADRAO;

SET TERM ^ ;

CREATE OR ALTER trigger ttbfolpag_verba_padrao_b01i for tbfolpag_verba_padrao
active before insert position 0
AS
BEGIN
    IF (NEW.ID IS NULL) THEN
        NEW.ID = GEN_ID(GTBFOLPAG_VERBA_PADRAO, 1);
END
^

SET TERM ; ^