Skip to main content

Advanced Queries

  • Chapter
  • First Online:
Pro JPA 2
  • 802 Accesses

Abstract

At this point, most of you will know enough about queries from what you have learned so far that you will likely not need any of the material from this chapter. In fact, roughly half of this chapter deals with using queries that will couple your application to a target database, so they should be used with some degree of planning and caution in any case.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.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

Institutional subscriptions

Notes

  1. 1.

    In a @NamedEntityGraph annotation it will contain the subgraph nodes for the entire entity graph.

  2. 2.

    A subgraph can be defined for the root type, but in that case it is an additional fetch plan used when the root entity type is being accessed through a relationship.

  3. 3.

    You can share subgraphs within the same entity graph, though.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Mike Keith

About this chapter

Cite this chapter

Keith, M., Schincariol, M. (2013). Advanced Queries. In: Pro JPA 2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4927-6_11

Download citation

Publish with us

Policies and ethics