October 2006
Intermediate to advanced
880 pages
22h 11m
English
This chapter explains all query options that you may consider optional or advanced. You'll need the first subject of this chapter, the Criteria query interface, whenever you create more complex queries programmatically. This API is much more convenient and elegant than programmatic generation of query strings for HQL and JPA QL. Unfortunately, it's also only available as a native Hibernate API; Java Persistence doesn't (yet) standardize a programmatic query interface.
Both Hibernate and Java Persistence support queries written in native SQL. You can embed SQL and stored procedure calls in your Java source code or externalize them to mapping metadata. Hibernate can execute your SQL and convert the resultset ...
Read now
Unlock full access