kaleidos / grails-postgresql-extensions

Grails plugin to use postgresql native elements such as arrays, hstores,...
Apache License 2.0
78 stars 63 forks source link

How to translate grails.gorm.default.mapping to application.yml file? #121

Closed kevintanhongann closed 5 years ago

kevintanhongann commented 5 years ago
grails.gorm.default.mapping = {
    id generator: 'org.hibernate.id.enhanced.SequenceStyleGenerator', params: [prefer_sequence_per_entity: true]
}

How to translate this to be inserted in the application.yml file in Grails 3? It's not documented in the guide at all.

ilopmar commented 5 years ago

Not really sure about it because id is a method with different parameters: generator and params. Can you please explain your use case? Why can't you use application.groovy for this configuration?