Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Hibernate

You're reading from   Mastering Hibernate Learn how to correctly utilize the most popular Object-Relational Mapping tool for your Enterprise application

Arrow left icon
Product type Paperback
Published in May 2016
Publisher Packt
ISBN-13 9781782175339
Length 204 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Concurrency


Transactions offer the functionality to group multiple work units into one big unit of work, but you can further configure Hibernate to achieve better isolation in a concurrent environment. What defines concurrency parameters is transaction isolation levels as well as locking mechanisms. These concepts also require that you learn the capabilities and the behavior of the specific RDBMS that you are using because both of them are implemented by the database systems and are not Hibernate features. For this reason, you need to carefully explore the various options with your specific database system. Here, we will discuss them to show you how to control them through Hibernate.

Lastly, when dealing with concurrency issues, you'll also need to keep in mind the first-level and second-level cache, as they can play an important role in identifying problems. We discussed this topic in Chapter 5, Hibernate Cache.

Isolation levels

Transactions let you isolate your unit of work from someone else...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image