October 2006
Intermediate to advanced
880 pages
22h 11m
English
In this chapter, you learned about transactions, concurrency, isolation, and locking. You now know that Hibernate relies on the database concurrency control mechanism but provides better isolation guarantees in a transaction, thanks to automatic versioning and the persistence context cache. You learned how to set transaction boundaries programmatically with the Hibernate API, JTA UserTransaction, and the JPA EntityTransaction interface. We also looked at transaction assembly with EJB 3.0 components and how you can work nontransactionally with autocommit mode.
Table 10.1 shows a summary you can use to compare native Hibernate features and Java Persistence.
| Hibernate Core ... |
|---|
Read now
Unlock full access