Chapter 16. Creating and Using String-Based Criteria Queries

This chapter describes how to create weakly-typed string-based Criteria API queries.

The following topics are addressed here:

• “Overview of String-Based Criteria API Queries” on page 293

• “Creating String-Based Queries” on page 294

• “Executing String-Based Queries” on page 295

Overview of String-Based Criteria API Queries

String-based Criteria API queries (“string-based queries”) are Java programming language queries that use strings rather than strongly-typed metamodel objects to specify entity attributes when traversing a data hierarchy. String-based queries are constructed similarly to metamodel queries, can be static or dynamic, and can express the same kind of queries and operations ...

Get The Java EE 6 Tutorial: Advanced Topics, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.