SET TERM ^ ;

create trigger tbpdv_pagamento_condicao_bi for tbpdv_pagamento_condicao
active before insert position 0
as
begin
  if (new.id is null) then
    new.id = gen_id(gtbpdv_pagamento_condicao,1);
end
^

SET TERM ; ^