[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6790) Add option to SequenceStyleGenerator to prefer a "sequence per entity"

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Nov 2 00:49:21 EDT 2011


Add option to SequenceStyleGenerator to prefer a "sequence per entity" 
-----------------------------------------------------------------------

                 Key: HHH-6790
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6790
             Project: Hibernate Core
          Issue Type: New Feature
          Components: core
            Reporter: Steve Ebersole
            Assignee: Steve Ebersole
             Fix For: 4.1.0


Basically this is a RFE for a corollary to {{org.hibernate.id.enhanced.TableGenerator#CONFIG_PREFER_SEGMENT_PER_ENTITY}} for the {{org.hibernate.id.enhanced.SequenceStyleGenerator}}.  

Currently, when no sequence name is given the default name (hibernate_sequence) is used.  So this option would force {{org.hibernate.id.enhanced.SequenceStyleGenerator}} to determine a sequence name when none is explicitly given based on the name of the entity.  The logic would be very similar to {{org.hibernate.id.enhanced.TableGenerator#determineDefaultSegmentValue}} but leveraging {{org.hibernate.id.IdentifierGenerator#ENTITY_NAME}} instead of {{org.hibernate.id.PersistentIdentifierGenerator#TABLE}}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list