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
  • DownloadDownload
  • PrintPrint

Querying Entities

The Java Persistence API provides the following methods for querying entities.

  • The Java Persistence query language (JPQL) is a simple, string-based language similar to SQL used to query entities and their relationships. See Chapter 21, “The Java Persistence Query Language,” for more information.

  • The Criteria API is used to create typesafe queries using Java programming language APIs to query for entities and their relationships. See Chapter 22, “Using the Criteria API to Create Queries,” for more information.


  

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