christian wrote:
Use a database trigger.
trying... but what if i would like to avoid triggers?
it's so close with hibernate, it only needs a little something. it's either me missing it or a few lines are missing from hibernate...
and if there's no other way, and if it's not too offtopic, could someone help me with the ?????? part?
thanks all,
- 101
CREATE OR REPLACE TRIGGER AUDITING
BEFORE UPDATE
ON SITE_QUESTION
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
Declare
rs SITE_QUESTION%rowtype;
Begin
select * into rs from SITE_QUESTION where id = :old.id;
select HIBERNATE_SEQUENCE.nextval into rs.id from dual;
insert into SITE_QUESTION ??????;
End;