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

Steve Ebersole (JIRA) noreply at atlassian.com
Thu May 6 10:56:48 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-5016.
-------------------------------

    Resolution: Incomplete

No response

> 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