Skip to main content

Using Queries

  • Chapter
  • First Online:
  • 1360 Accesses

Abstract

Doing so requires the ability to issue bulk queries against the database and interpret the results for the application. Although high-level languages and expression frameworks have in many cases attempted to insulate developers from the task of dealing with database queries at the level of SQL, it’s probably fair to say that most enterprise developers have worked with at least one SQL dialect at some point in their career.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    As in most examples in the book, the bean could be a session bean, a CDI bean, or any other kind of container bean that supports entity manager injection.

  2. 2.

    Parameters values that may have already been bound using setParameter() are not saved as part of the named query.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Mike Keith, Merrick Schincariol, Massimo Nardone

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Keith, M., Schincariol, M., Nardone, M. (2018). Using Queries. In: Pro JPA 2 in Java EE 8. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3420-4_7

Download citation

Publish with us

Policies and ethics