JPA
-
Enterprise Java
JPA Tutorial – The ULTIMATE Guide (PDF Download)
EDITORIAL NOTE: In this post, we feature a comprehensive JPA Tutorial. The Java Persistence API (JPA) is a Java programming…
Read More » -
Enterprise Java
A beginner’s guide to Java Persistence locking
Implicit locking In concurrency theory, locking is used for protecting mutable shared data against hazardous data integrity anomalies. Because lock…
Read More » -
Enterprise Java
EAGER fetching is a code smell
Introduction Hibernate fetching strategies can really make a difference between an application that barely crawls and a highly responsive one.…
Read More » -
Enterprise Java
5 ways to initialize lazy relations and when to use them
Lazy loading of relations between entities is a well established best practice in JPA. Its main goal is to retrieve…
Read More » -
Enterprise Java
JPA Entity Graphs
One of the latest features in JPA 2.1 is the ability to specify fetch plans using Entity Graphs. This is…
Read More » -
Enterprise Java
EasyCriteria has evolved to uaiCriteria. New name and more features
Hello, how are you? I am very happy to announce the release of the uaiCriteria, the EasyCriteria evolution. Was it…
Read More » -
Enterprise Java
JPA Tutorial: Mapping Entities – Part 3
In my last article I showed two different ways to read/write persistent entity state – field and property. When field access mode is…
Read More » -
Enterprise Java
JPA Tutorial: Mapping Entities – Part 2
In my last post I showed a simple way of persisting an entity. I explained the default approach that JPA…
Read More » -
Software Development
Preventing lost updates in long conversations
Introduction All database statements are executed within the context of a physical transaction, even when we don’t explicitly declare transaction…
Read More »