GORM finder methods excerpt


/ Published in: Groovy
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Player.find(myHQLquery)
  2. Player.findAll(myHQLquery)
  3. Player.findByName("Marc Tardif")
  4. Player.findAllByNameLike("%Stastny")
  5. Player.findAllByPosition("LW")
  6. Player.findAllByPositionNotEqual("G")
  7. Player.findByCreationDateBetween(date1, date2)
  8. Player.findByCreationDateGreaterThanEquals(someDate)
  9. Player.findByCreationDateLessThanEquals(someDate)
  10. Player.findByPositionIsNull()
  11. Player.findByPositionIsNotNull()
  12. Player.findByNameAndPosition("Daniel Bouchard", "G")

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.