October 2006
Intermediate to advanced
880 pages
22h 11m
English
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 ... |
Read now
Unlock full access