Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, you implemented conversations with Hibernate, JPA, and EJB 3.0 components. You learned how to propagate the current Hibernate Session and the persistence context to create more complex layered applications without leaking concerns. You've also seen that persistence-context propagation is a deeply integrated feature of EJB 3.0 and that a persistence context can be easily bound to the JTA (or CMT) transaction scope. You've seen how FlushMode.MANUAL, a Hibernate feature, can disable flushing of your persistence context independently from your transaction assembly.
Table 11.2 shows a summary you can use to compare native Hibernate features and Java Persistence.