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

add support for uuid datatype #89

Closed edwardotis closed 8 years ago

edwardotis commented 8 years ago

Hi,

Can you add support for java.util.UUID to postgres uuid data type? http://www.postgresql.org/docs/9.4/static/datatype-uuid.html

Thanks

edwardotis commented 8 years ago

Nevermind, I see that putting this in Config.groovy in grails 2.5.x does the trick:

grails.gorm.default.mapping = { uuid generator: 'uuid2', type: 'pg-uuid' }

ilopmar commented 8 years ago

Awesome, thank you very much. If you want, you can send a PR to the README.md with that information. If you do it, please make sure that you create it from this branch https://github.com/kaleidos/grails-postgresql-extensions/tree/grails-2.x because you're using Grails 2.x