[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-4228) @TableGenerator realisation does not respect initialValue
Steve Ebersole (JIRA)
noreply at atlassian.com
Sun Sep 19 11:43:22 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole closed HHH-4228.
-------------------------------
Resolution: Won't Fix
We have a new set of generators that do this correctly. If you want to use them, specify 'hibernate.id.new_generator_mappings' as true in your config (see HHH-4690).
> @TableGenerator realisation does not respect initialValue
> ---------------------------------------------------------
>
> Key: HHH-4228
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4228
> Project: Hibernate Core
> Issue Type: Bug
> Components: annotations
> Reporter: Christoph Schönfeld
> Priority: Minor
>
> I would like to have generated IDs for a certain entity type start at the value of 1000.
> Consider the following example.
> @TableGenerator(name = "employee",
> table = "SEQUENCES",
> pkColumnName = "name",
> valueColumnName = "value",
> pkColumnValue = "employee",
> allocationSize = 10,
> initialValue = 1000)
> Hibernate generates the SEQUENCES table correctly but it always returns 1 as the first generated key.
> In the source code of AnnotationBinder.java which seems to be responsible for binding the @TableGenerator annotation to a MultipleHiLoPerTableGenerator instance the initialValue property is ignored.
--
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