set an allocationSize parameter in GORM generation strategy

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

set an allocationSize parameter in GORM generation strategy

Dimi
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

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/65425cad-99b3-45c3-8afc-1b65b1e141fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.