Hibernate 6 Shared schema MultitenancyHibernate 6 introduced a new way to create multi-tenant applications. Apart of per-schema or per-database now it's possible to use a shared schema.3 min read·robertniestroj.hashnode.devApr 8, 2025
Two reasons why you might want to disable Open Session in View in a Spring applicationThe Open Session in View pattern can lead to performance issues and surprising errors in Spring Boot. Maybe you want disable it.5 min read·robertniestroj.hashnode.devDec 12, 2024
A Guide to Logging SQL Queries in HibernateLearn how to log SQL queries in Hibernate to identify performance issues in the data access layer.6 min read·robertniestroj.hashnode.devOct 22, 2024
How JPA works from your Java code to the DatabaseTo work efficiently with Spring, JPA and Hibernate one needs to understand how this technologies work together. I try to explain it in this article.4 min read·robertniestroj.hashnode.dev1ASep 24, 2024
Think twice before using @OneToMany@OneToMany is one of the most often used annotations in #JPA. Whenever a Parent Entity can have multiple Childs we use a Collection with the @OneToMany annotation. import javax.persistence.*; import java.util.HashSet; import java.util.Set; import org...3 min read·robertniestroj.hashnode.devJul 3, 2024