In a default install of rails when you save the first domain object it gives a fancy randomized id like 785787634
or something. Grails gives 1
.
What is the preferred method of making difficult-to-guess and unlikely-to-intersect auto generated ids in grails?
Grails allows you to customize the id generator. see http://grails.org/doc/latest/guide/GORM.html#identity
In your case, you could consider 'uuid' or 'guid'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With