JPA
-
Enterprise Java
A beginner’s guide to JPA/Hibernate flush strategies
Introduction In my previous post I introduced the entity state transitions Object-relational mapping paradigm. All managed entity state transitions are…
Read More » -
Enterprise Java
From JPA to Hibernate’s legacy and enhanced identifier generators
JPA identifier generators JPA defines the following identifier strategies: Strategy Description AUTO…
Read More » -
Enterprise Java
Using @NamedEntityGraph to load JPA entities more selectively in N+1 scenarios
The N+1 problem is a common issue when working with ORM solutions. It happens when you set the fetchType for…
Read More » -
Enterprise Java
Testing with Aliens: How to test a JPA type converter with Arquillian
This post was written together with +Aslak Knutsen (@aslakknutsen). JPA type converters provide an easy way to define how an…
Read More » -
Enterprise Java
How to use a JPA Type Converter to encrypt your data
A few days ago, I read an interesting article by Bear Giles about Database encryption using JPA listeners from 2012.…
Read More » -
Enterprise Java
JPA 2.1 Entity Graph – Part 2: Define lazy/eager loading at runtime
This is my second post on JPA 2.1 Entity Graphs. The first post described the usage of named entity graphs.…
Read More » -
Enterprise Java
JPA 2.1 Entity Graph – Part 1: Named entity graphs
Lazy loading was often an issue with JPA 2.0. You have to define at the entity if you want to…
Read More » -
Enterprise Java
JPA 2.1 Type Converter – The better way to persist enums
Persisting enums with JPA 2.0 is possible, but there is no nice way to do it. Using the @Enumerated annotation,…
Read More » -
Enterprise Java
SpringMVC4 + Spring Data JPA + SpringSecurity configuration using JavaConfig
In this article we will see how to configure and integrate SpringMVC4, Spring Data JPA with Hibernate and SpringSecurity using…
Read More »