belongsTo is useful if you need a link back to the owner object. In this case, it is likely that Author has many Book s. But perhaps you are using a book object and want to mention this instance of Author . This is a good way to get it.
Regarding CRUD, deleting or updating a book will not do anything with Author , but removing Author will delete Book . If you do not add belongsTo , then there will be no cascading save / update / delete, you will have to do it manually.
Example:
def a = new Author(name: 'JK Rawling') a.addToBooks(new Book(title: 'Harry Potter 1')) a.addToBooks(new Book(title: 'Harry Potter 2')) a.save() // Saves author and book instances a.delete() // Author and both books are deleted
Edit:
The OP updated his question, and I honestly don't know what the answer will be. Hopefully Bert Beckwith is coming soon! Good point, OP.
source share