set an allocationSize parameter in GORM generation strategy

31 views
Skip to first unread message

Dimi

unread,
Jun 7, 2018, 7:57:45 AM6/7/18
to Grails Dev Discuss
Hi,

is there a way to set an allocationSize of the sequence id generation strategy in GORM DSL?

A native hibernate mapping:
@SequenceGenerator(name="generator", sequenceName="KONF_SEQ")
@Id @GeneratedValue(strategy=SEQUENCE, generator="generator", <b>allocationSize</b>=10)

I have tried in GORM:
id column: 'konf_id', generator:'sequence', <b>allocationSize</b>: 10, params: [sequence: 'konf_seq']
and
id column: 'konf_id', generator:'sequence', params: [sequence: 'konf_seq', <b>allocationSize</b>: 10]

but it doesn't work.

My Grails version is 3.3.3

Thanks
Dimi
Reply all
Reply to author
Forward
0 new messages