SET TERM ^ ;

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

SET TERM ; ^

