
Thoughts on Java
1000 FOLLOWERS
My name is Thorben Janssen and I live and work in Dresden, Germany. I am an independent trainer and author and work as a senior developer and software architect. I develop Java EE applications since 2001 and focus on the business logic and persistence tier of the application. These are also the main topics of my conference talks, workshops and this blog.
Thoughts on Java
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
Thoughts on Java
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
Thoughts on Java
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
Thoughts on Java
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
Thoughts on Java
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
Thoughts on Java
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
Thoughts on Java
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
Thoughts on Java
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
Thoughts on Java
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
Thoughts on Java
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