my own id in GORM
I tried to change the standard 'id' in grails: calls Book { String id String title static mapping { id generator:'assigned' } } unfortunately, I soon noticed that this breaks my bootstrap. Instead of new Book (id:'some ISBN', title:'great book').save(flush:true, failOnError:true) I had to use def b = new Book(title:'great book') b.id = 'some ISBN' b.save(flush:true, failOnError:true) otherwise I get an 'ids for this class must be manually assigned before calling save()' error. but that's ok so far. I then encountered the same problem in the save action of my bookController. But this time, the