
Thorben Janssen Blog
1000 FOLLOWERS
Read in-depth articles and get regular updates to stay up-to-date with JPA, Hibernate and microservice-related persistence topics. Hi, My name is Thorben Janssen. I'm the author of this blog and of the Amazon bestselling book Hibernate Tips - More than 70 solutions to common Hibernate problems. For the last 15 years, I have been using Hibernate and JPA in all kinds of projects. From small..
Thorben Janssen Blog
3d ago
The post The difference between Spring Data JPA’s findById, getOne, getById, and findOne methods appeared first on Thorben Janssen.
Spring Data’s JpaRepository provides a huge set of methods that simplify the implementation of your database operations. You can use them to persist, remove, and read an…
The post The difference between Spring Data JPA’s findById, getOne, getById, and findOne methods appeared first on Thorben Janssen ..read more
Thorben Janssen Blog
2w ago
The post Hibernate Performance Tuning – 2023 Edition appeared first on Thorben Janssen.
Based on most discussions online and at conferences, there seem to be 2 kinds of projects that use Hibernate for their persistence layer. Most use…
The post Hibernate Performance Tuning – 2023 Edition appeared first on Thorben Janssen ..read more
Thorben Janssen Blog
3w ago
The post Entity Views with Blaze Persistence – The better DTO projections? appeared first on Thorben Janssen.
Blaze Persistence’s Entity Views try to solve some of the most common complaints about DTO projections in JPA and Hibernate. Most developers know that DTOs…
The post Entity Views with Blaze Persistence – The better DTO projections? appeared first on Thorben Janssen ..read more
Thorben Janssen Blog
4M ago
The post Create better Criteria queries with Blaze persistence appeared first on Thorben Janssen.
The Blaze Persistence project provides an interesting alternative to JPA’s Criteria API. Both APIs enable you to define queries dynamically at runtime. Most developers use…
The post Create better Criteria queries with Blaze persistence appeared first on Thorben Janssen ..read more
Thorben Janssen Blog
4M ago
The post 6 Performance Pitfalls when using Spring Data JPA appeared first on Thorben Janssen.
Thanks to its ease of use, Spring Data JPA is an incredibly popular persistence framework. If developers have something to complain about, they usually criticize…
The post 6 Performance Pitfalls when using Spring Data JPA appeared first on Thorben Janssen ..read more
Thorben Janssen Blog
4M ago
The post The differences between Spring Data JPA’s save, saveAndFlush and saveAll methods appeared first on Thorben Janssen.
Spring Data JPA’s standard repositories provide a set of methods that handle common operations used by most persistence layers. That saves us a lot of…
The post The differences between Spring Data JPA’s save, saveAndFlush and saveAll methods appeared first on Thorben Janssen ..read more
Thorben Janssen Blog
6M ago
The post How to use PostgreSQL’s JSONB data type with Hibernate appeared first on Thorben Janssen.
Most databases offer lots of proprietary features in addition to the known SQL standard. One example is PostgreSQL’s JSONB data type which allows you to…
The post How to use PostgreSQL’s JSONB data type with Hibernate appeared first on Thorben Janssen ..read more
Thorben Janssen Blog
6M ago
The post Spring Data JDBC – Use a sequence to generate primary keys appeared first on Thorben Janssen.
By default, Spring Data JDBC expects the database to provide a primary key value for every new record. The easiest way to achieve that is…
The post Spring Data JDBC – Use a sequence to generate primary keys appeared first on Thorben Janssen ..read more
Thorben Janssen Blog
7M ago
The post How to generate UUIDs as primary keys with Hibernate appeared first on Thorben Janssen.
Most developers prefer numerical primary keys because they are efficient to use and easy to generate. But that doesn’t mean that a primary key has…
The post How to generate UUIDs as primary keys with Hibernate appeared first on Thorben Janssen ..read more
Thorben Janssen Blog
7M ago
The post Flyway – Implementing Java-based Migrations and Callbacks appeared first on Thorben Janssen.
Flyway’s SQL-script based database migration is more than powerful enough for most use cases. But sometimes, you must take it one step further to adapt…
The post Flyway – Implementing Java-based Migrations and Callbacks appeared first on Thorben Janssen ..read more