JPA
-
Enterprise Java
JPA – Hibernate – Type mapping on package level
When we are finally mature enough to use some custom types mapping in JPA, we usually stuck with some provider…
Read More » -
Enterprise Java
JPA 2.0 Criteria Query with Hibernate
Criteria Query has been introduced in JPA 2.0. With the help of criteria queries you can write your queries in…
Read More » -
Enterprise Java
JPA and CMT – Why Catching Persistence Exception is Not Enough?
Being in EJB and JPA world using CMT (Container Managed Transactions) is very comfortable. Just define few annotations to demarcate…
Read More » -
Enterprise Java
Types of Entity Managers: Application-managed EntityManager
JPA specification defines few types of EntityManagers / Persistence Contexts. We can have: extended and transactional-scoped EntityManagers, container-managed or application-managed…
Read More » -
Enterprise Java
Bidirectional @OneToMany / @ManyToOne association
One of goals in programming is representing of models from real world. Very often an application need to model some…
Read More » -
Enterprise Java
Bidirectional @OneToOne primary key association
It’s time to continue articles about Hibernate. The last one was dedicated to unidirectional @OneToOne association. So today I will…
Read More » -
Enterprise Java
EasyCriteria 2.0 – JPA Criteria should be easy
In the post today we will see about the new version of the framework named EasyCriteria. At the end of…
Read More » -
Enterprise Java
Spring Data JPA and pagination
Let us start with the classic JPA way to support pagination. Consider a simple domain class – A ‘Member’ with…
Read More » -
Enterprise Java
Database Encryption Using JPA Listeners
I recently had to add database encryption to a few fields and discovered a lot of bad advice out there.…
Read More »