You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2014/11/25 21:23:28 UTC
[jira] (MPHIBERNATE-15) Oracle sequence is not set correctly
[ https://jira.codehaus.org/browse/MPHIBERNATE-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MPHIBERNATE-15.
-------------------------------------
Resolution: Won't Fix
Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.
> Oracle sequence is not set correctly
> ------------------------------------
>
> Key: MPHIBERNATE-15
> URL: https://jira.codehaus.org/browse/MPHIBERNATE-15
> Project: Maven 1.x Hibernate Plugin
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Daniel Beland
>
> 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;
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)