[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6040) Hbm2ddl does not support allocationSize and initialValue on @SequenceGenerator

Alexandre Garnier (JIRA) noreply at atlassian.com
Tue Mar 22 12:47:08 EDT 2011


Hbm2ddl does not support allocationSize and initialValue on @SequenceGenerator
------------------------------------------------------------------------------

                 Key: HHH-6040
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6040
             Project: Hibernate Core
          Issue Type: Bug
    Affects Versions: 3.6.2
            Reporter: Alexandre Garnier
         Attachments: HibernateTestCase.zip

When using Hbm2ddl, generated sequences doesn't have allocationSize and initialValue dialect-equivalent attributes (if exists).

For Oracle, the sequence is just:
{{create sequence SEQ_ID;}}
It should be:
{{create sequence SEQ_ID start with %initialValue% increment by %allocationSize%;}}

For MySQL, it could add {{auto_increment = %initialValue%}} on table definition.

A test case in attachment.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list