Categories

Tag Cloud

Archives

Optimistic Locking in Hibernate and JPA

Unless you are writing small applications with a tiny user-base then you will want a mechanism to ensure data integrity. Optimistic locking provides this without performance crippling row locks.

When is it right to Autowire beans?

Automatic wiring is a great time saver for small applications, such as “Hello, World”. Anything more than that and you are heading down a path paved with bad practices and at best it can lead to an inflexible architecture in larger applications.