14.4. Summary

You're now able to write a wide variety of queries in HQL and JPA QL. You learned in this chapter how to prepare and execute queries, and how to bind parameters. We've shown you restriction, projection, joins, subselects, and many other options that you probably already know from SQL.

Table 14.4 shows a summary you can use to compare native Hibernate features and Java Persistence.

Table 14-4. Hibernate and JPA comparison chart for chapter 14
Hibernate CoreJava Persistence and EJB 3.0
Hibernate APIs support query execution with listing, iteration, and scrolling.Java Persistence standardizes query execution with listing.
Hibernate supports named and positional query bind parameters.Java Persistence standardizes named and positional ...

Get Java Persistence with Hibernate now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.