When adding a single Book, you can just do:
String author = 'John Smith'
String title = 'First Book'
def book = new Book(author: author, title: title)
book.save(flush: flush, insert: true)
Say I want to add a number of books at once, for instance if the input is:
String author = 'John Smith'
String title = ['First Book', 'Second Book', 'Third Book']
How can I save all the books with one call to the database?