Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

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

Anupam M (JIRA)

2010-03-16

Replies: Find Java Web Hosting

Author LoginPost Reply
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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.