O'Reilly logo

Spring Persistence with Hibernate by Ahmad Seddighi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Querying In Hibernate

Queries are the vital part of any data-access code. Almost all applications need to investigate persistent objects and explore objects that satisfy specific criteria. SQL is a powerful language for querying persistent data and determining query criteria with WHERE and JOIN clauses. Using SQL, you can express any query restriction for the objects your application needs. As the number of query restrictions grows, the query expressions become more complex, making those query expressions hard to develop, test, and maintain. Moreover, the created query expressions may not be effective and optimized. Querying persistent objects is another area of the persistence layer where Hibernate simplifies data access development ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required