[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5016) Add support for initialValue on sequence generation

Morten Egelund Rasmussen (JIRA) noreply at atlassian.com
Tue Mar 16 07:48:49 EDT 2010


Add support for initialValue on sequence generation
---------------------------------------------------

                 Key: HHH-5016
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5016
             Project: Hibernate Core
          Issue Type: Improvement
            Reporter: Morten Egelund Rasmussen


I'm having an entity with a @javax.persistence.SequenceGenerator annotation:

{code}
@SequenceGenerator(name = "foo.pkseq",
                   sequenceName = "MY_SCHEME.SEQ_FOO_ID",
                   allocationSize=1,
                   initialValue=100)
{code}

I have set "hibernate.hbm2ddl.auto = create".

When the sequence is created, it is created without the initialValue properly set. Referring to the documentation on Hibernate Annotations 3.4, it states that this feature is currently not implemented. I have tried with the H2 and HSQLDB databases.

I'm doing some integration tests, where records are created in a RAM-based H2 or HSQLDB test database. The database is already populated with data.

-- 
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