Hakan Küçük (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZWNiZWFiZWIy...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16610?atlOrigin=eyJpIjoiZWNiZW...
) HHH-16610 (
https://hibernate.atlassian.net/browse/HHH-16610?atlOrigin=eyJpIjoiZWNiZW...
) Sequence ID generation increment size global setting (
https://hibernate.atlassian.net/browse/HHH-16610?atlOrigin=eyJpIjoiZWNiZW...
)
Issue Type: Improvement Assignee: Unassigned Components: hibernate-core Created:
16/May/2023 03:19 AM Environment: Hibernate 6.x Priority: Major Reporter: Hakan Küçük (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We need a way to migrate a way to migrate the code below.
There is no way to set increment size on base class.
@Getter
@Setter
@MappedSuperclass
@Audited
public abstract class AbstractEntity {
@Id
@GeneratedValue(generator = "optimized-sequence")
@GenericGenerator(
name = "optimized-sequence",
strategy = "enhanced-sequence",
parameters = {
@Parameter(name = SequenceStyleGenerator.CONFIG_PREFER_SEQUENCE_PER_ENTITY,
value = "true"),
@Parameter(name = SequenceStyleGenerator.INCREMENT_PARAM, value =
"100")})
private Long id;
https://discourse.hibernate.org/t/hibernate-6-migration-id-generation/7556
(
https://hibernate.atlassian.net/browse/HHH-16610#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16610#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:6805d32 )