im a new user from hibernate..
i need update in cascate..
example:
CREATE TABLE emprestimos
(
emprestimo_id int4 NOT NULL,
emprestimo_total float8 NOT NULL,
agenciafk_id int4 NOT NULL,
CONSTRAINT emprestimos_pkey PRIMARY KEY (emprestimo_id),
CONSTRAINT fkbb08884d7d90bc1 FOREIGN KEY (agenciafk_id)
REFERENCES agencias (agencia_id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE CASCADE
)
how i change ON UPDATE NO ACTION to CASCADE??
how i change the name of CONSTRAINT fkbb08884d7d90bc1 FOREIGN KEY (agenciafk_id).
tks for all
|