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

16.4. Queries

Data querying is a key feature in database-driven applications. The Seam application framework provides query components in addition to the basic CRUD DAO components. You can use a query component to declare queries in components.xml without writing a single line of Java code.

The declarative approach to data queries helps us manage all queries in a central location and allows the Java code to reuse queries. It is a proven approach similar to the NamedQuery in Hibernate or Java Persistence API.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

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

  

Start a Free 10-Day Trial


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