O'Reilly logo

NHibernate in Action by Tobin Harris, Pierre Henri Kuaté, Gavin King, Christian Bauer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Transactions, concurrency, and caching

This chapter covers

  • Database transactions and locking
  • Long-running conversations
  • The NHibernate first- and second-level caches
  • The caching system in practice with CaveatEmptor

Now that you understand the basics of object/relational mapping with NHibernate, let’s take a closer look at one of the core issues in database application design: transaction management. In this chapter, we examine how you use NHibernate to manage transactions, how concurrency is handled, and how caching is related to both aspects. Let’s look at our example application.

Some application functionality requires that several different things be done together. For example, when an auction finishes, the CaveatEmptor application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required