]
Lukasz Antoniak resolved HHH-6790.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: 5.0.0)
4.1.3
Assignee: Lukasz Antoniak (was: Steve Ebersole)
Add option to SequenceStyleGenerator to prefer a "sequence per
entity"
-----------------------------------------------------------------------
Key: HHH-6790
URL:
https://hibernate.onjira.com/browse/HHH-6790
Project: Hibernate ORM
Issue Type: New Feature
Components: core
Reporter: Steve Ebersole
Assignee: Lukasz Antoniak
Labels: generated
Fix For: 4.1.3
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: