Category

JPA

#HOWTO: JPA integration tests with Java EE

Writing good unit tests for your central business logic is essential for the speed of your development and a confident deployment to production. But there are also parts of your application where plain unit tests with mocking frameworks like Mockito aren’t that useful or result in a “mocking-hell”. The interaction of your application with your database is…

Read More

#HOW TO: Lazy Loading of JPA attributes with Hibernate

Modeling your domain model with JPA is quite easy and for a smaller amount of data, you can easily rely on the default configuration of JPA/Hibernate. But when it comes to performance issues in your application you need a deeper understanding of JPA/Hibernate. One big performance boost could be Lazy Loading. When it comes to Lazy Loading,…

Read More