When working with automatic id's in Grails, sequence generation uses a less than useful default sequence name of hibernate_sequence. Use the following syntax as part of the GORM mapping to set the sequence name to something sane:
static mapping = {
id generator:sequence,params:[name:'mytable_id_seq']
}
Tracked: Jul 16, 05:26