Hibernate SQM – Semantic Query Model
Introduction In this article, I’m going to explain what is the Hibernate SQM or Semantic Query Model so that you have a better picture of how JPQL or Criteria API queries are executed by Hibernate....
View ArticleHigh-Performance Java Persistence Newsletter, Issue 38
Introduction Welcome to a new issue of the High-Performance Java Persistence Newsletter in which we share articles, videos, workshops, and StackOverflow answers that are very relevant to any developer...
View ArticleThe best way to use the Hibernate TupleTransformer
Introduction In this article, I’m going to explain how the Hibernate TupleTransformer works and how to use it to replace the deprecated ResultTransformer. The deprecated ResultTransformer Prior to...
View ArticleThe best way to configure the Hibernate Dialect
Introduction In this article, I’m going to explain what is the best way to configure the Hibernate Dialect so that you get the most out of your database. Manual Hibernate Dialect resolution...
View ArticleJava data access technology survey results
Introduction Java has tons of data access frameworks, and in this article, we are going to what Java database technology is preferred by developers and for what reasons. The number one reason why we...
View ArticleHigh-Performance Java Persistence Newsletter, Issue 39
Introduction Welcome to a new issue of the High-Performance Java Persistence Newsletter in which we share articles, videos, workshops, and StackOverflow answers that are very relevant to any developer...
View ArticleThe best Spring Data JpaRepository
Introduction In this article, I’m going to show you the best way to use the Spring Data JpaRepository, which, most often, is used the wrong way. The biggest issue with the default Spring Data...
View ArticleThe race condition that led to Flexcoin bankruptcy
Introduction It’s hard to imagine that a race condition bug could lead to the bankruptcy of a given online service, isn’t it? In this article, I’m going to show you how a race condition led to the...
View ArticleSpring Transaction Best Practices
Introduction In this article, I’m going to show you various Spring Transaction Best Practices that can help you achieve the data integrity guarantees required by the underlying business requirements....
View ArticleSpring Data JPA MultipleBagFetchException
Introduction In this article, I’m going to show you how to handle the MultipleBagFetchException thrown by Hibernate upon simultaneously fetching multiple collections with Spring Data JPA....
View ArticleHigh-Performance Java Persistence Newsletter, Issue 40
Introduction Welcome to a new issue of the High-Performance Java Persistence Newsletter in which we share articles, videos, workshops, and StackOverflow answers that are very relevant to any developer...
View ArticleMaximum number of database connections
Introduction Have you ever wondered what the maximum number of database connections provided by a given RDBMS is? In this article, we are going to see what limits the number of database connections, no...
View ArticleThe best way to map MonetaryAmount with JPA and Hibernate
Introduction In this article, we are going to see what is the best way to map the MonetaryAmount object from Java Money and the Currency API when using JPA and Hibernate. While the Java Money and...
View ArticleHigh-Performance Java Persistence Newsletter, Issue 41
Introduction Welcome to a new issue of the High-Performance Java Persistence Newsletter in which we share articles, videos, workshops, and StackOverflow answers that are very relevant to any developer...
View ArticleMySQL rewriteBatchedStatements
Introduction In this article, we are going to see how MySQL rewriteBatchedStatements works when using JDBC, JPA, or Hibernate. I first researched this MySQL configuration property when I was writing...
View ArticleTestcontainers Database Integration Testing
Introduction In this article, we are going to see how we can use Testcontainers for database integration testing. If you are still using HSQLDB or H2 to test your Spring Boot application that runs on...
View ArticleHow to use different Java versions for main and test in Maven
Introduction In this article, we are going to see how we can use different Java versions for the main and test folders in Maven so that you can run tests on a newer version of Java. Why even use...
View ArticleThe best way to fetch a Spring Data JPA DTO Projection
Introduction In this article, I’m going to show you what is the best way to fetch a Spring Data JPA DTO Projection. Apart from the basic use cases, we’re going to see how to fetch even hierarchical DTO...
View ArticleHigh-Performance Java Persistence Newsletter, Issue 42
Introduction Welcome to a new issue of the High-Performance Java Persistence Newsletter in which we share articles, videos, workshops, and StackOverflow answers that are very relevant to any developer...
View ArticleA beginner’s guide to YugabyteDB
Introduction In this article, we are going to see what YugabyteDB is, how to install it and manage using PostgreSQL tools, and how you can connect to it using JDBC, JPA, or Hibernate. I got curious...
View Article