15.5. Summary
In this chapter, you've generated queries programmatically with the Hibernate Criteria and Example APIs. We also looked at embedded and externalized SQL queries and how you can map the resultset of an SQL query to more convenient business objects automatically. Java Persistence also supports native SQL and standardizes how you can map the resultset of externalized SQL queries.
Finally, we covered the query result cache and discussed why it's useful only in certain situations.
Table 15.1 shows a summary you can use to compare native Hibernate features and Java Persistence.
Hibernate Core | Java Persistence and EJB 3.0 |
---|---|
Hibernate supports a powerful Criteria and Example API ... |
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.