Maven 1.x Hibernate Plugin

Oracle sequence is not set correctly

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.3
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

When executing the goal schema-export, with OracleDialect, the sequences are created but they are not assigned to the tables.

Something similar to this should be generated:

CREATE OR REPLACE TRIGGER TRG_ALIAS
BEFORE INSERT ON ALIAS
FOR EACH ROW
BEGIN
IF :new.COID IS NULL THEN
SELECT SEQ_ALIAS.nextval INTO :new.COID FROM dual;
END IF;
END;
/
SHOW ERRORS;

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: