October 2006
Intermediate to advanced
880 pages
22h 11m
English
We've covered a lot of ground in this chapter. You now know that the basic interfaces in Java Persistence aren't much different from those provided by Hibernate. Loading and storing objects is almost the same. The scope of the persistence context is slightly different, though; in Hibernate, it's by default the same as the Session scope. In Java Persistence, the scope of the persistence context varies, depending on whether you create an EntityManager yourself, or you let the container manage and bind it to the current transaction scope in an EJB component.
Table 9.1 shows a summary you can use to compare native Hibernate features and Java Persistence.
| Hibernate Core | Java Persistence ... |
|---|
Read now
Unlock full access