Go To Homepage



Book Details
Beginning Groovy and Grails: From Novice to Professional book cover
  • By: Christopher M. Judd , Joseph Faisal Nusairat , Jim Shingler
  • ISBN10: 1-4302-1045-1
  • ISBN13: 978-1-4302-1045-0
  • 440 pp.
  • Published Jun 2008
  • Price: $42.99
  • eBook Price: $30.09




Submit Book Errata

If you think that you've found an error in our book, please let us know.

Beginning Groovy and Grails: From Novice to Professional (978-1-4302-1045-0)

Past Errata Submission

Errata Author's Reply
Chapter 6, page 199, listing 6-30: the description of the Todo.findAllByPriorityOrStatus("2","4") should read 'in the second, you're separating the retrieval with an Or, so that if a record has a PRIORITY of "2" or a status of "4".' The submitter provided a solution, and yes that is correct that it should be a priority of 2 or a status of 4.

Thank you.

And i have also updated
http://www.beginninggroovyandgrails.com/ with the errata provided
Page 2 - Under Groovy Installation. It maybe unclear but there are platform specific installers for Windows, Ubuntu and Debian. .
Chapter 2, Listing 2-35, page 41. This line doesn't work:

list.collect { println it.printFullName() }

because you are printing the result of calling printFullName(), which itself already calls println, the result of which is null.

Instead, you should have in the User class:

def fullName() { "$firstName $lastName" }

and

list.each { println it.fullName() }
You are correct and thanks for the solution.