Issue Type: Task Task
Assignee: Unassigned
Components: metamodel
Created: 19/Jun/12 4:24 PM
Description:

I didn't see GenerationType.AUTO described in the Hibernate manual, but according to https://docs.jboss.org/author/display/AS71/JPA+Reference+Guide#JPAReferenceGuide-Persistenceunitproperties,

In Hibernate 4.x, if new_generator_mappings is true:

  • @GeneratedValue(AUTO) maps to org.hibernate.id.enhanced.SequenceStyleGenerator
  • @GeneratedValue(TABLE) maps to org.hibernate.id.enhanced.TableGenerator
  • @GeneratedValue(SEQUENCE) maps to org.hibernate.id.enhanced.SequenceStyleGenerator

In Hibernate 4.x, if new_generator_mappings is false:

  • @GeneratedValue(AUTO) maps to Hibernate "native"
  • @GeneratedValue(TABLE) maps to org.hibernate.id.MultipleHiLoPerTableGenerator
  • @GeneratedValue(SEQUENCE) to Hibernate "seqhilo"

Currently, the IdGenerator is not being bound properly.

org.hibernate.metamodel.internal.source.annotations.attribute.SimpleIdentifierSourceImpl.getIdentifierGeneratorDescriptor() returns null.

Fix Versions: 5.0.0
Project: Hibernate ORM
Priority: Major Major
Reporter: Gail Badner
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira