Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Putting the model to work > More sophisticated query options

4.3. More sophisticated query options

Dynamic finders are concise and quite powerful. Being able to do something like User.findByUserId("joe") is a productive way to query, but there are situations where that’s not enough. Grails won’t leave you stranded: it’s time to explore criteria queries and HQL.

This section takes advantage of some pretty advanced query skills in Grails, so don’t get discouraged if some of this seems tricky the first few times. Once you start writing your own applications and can’t implement the features you want with dynamic finders, you’ll find yourself coming back here to review these advanced query features. Buckle up.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint