Five years of blogging
Persistence, right? I’ve been blogging for five years already. Every year, I happen to write a report, and if you are curious about my progress, check out the previous reports: 2017 2016 2015 2014 Page Views Compared to last year, the traffic almost doubled, and now I get around 270K page views and over 130K visitors on a monthly basis. Overall, in these five years, I got over 5 million page views and 2.7 million visitors. Cool, right?
Spring read-only transaction Hibernate optimization
Introduction In this article, I’m going to explain how the Spring read-only transaction Hibernate optimization works. After taking a look at what the Spring framework does when enabling the readOnly attribute on the @Transactional annotation, I realized that only the Hibernate flush mode is set to FlushType.MANUAL without propagating the read-only flag further to the Hibernate Session. So, in the true spirit of open-source software developer, I decided it’s time to make a change.
Hibernate performance tuning tips
Introduction In this article, I’m going to summarise the most common Hibernate performance tuning tips that can help you speed up your data access layer. While getting started with JPA and Hibernate is fairly easy, if you want to get the most out of your data access layer, it’s very important to understand how the JPA provider works, as well as the configuration properties that can help you optimize application performance.
How to map the PostgreSQL inet type with JPA and Hibernate
Introduction In this article, we are going to see how to map the PostgreSQL inet type with JPA and Hibernate. Traditionally, PostgreSQL has been offering more column types than other relational database systems. And you don’t even have to implement these types I’m presenting here since they are available via the Hypersistence Utils project.
The best way to clone or duplicate an entity with JPA and Hibernate
Introduction Have you ever wondered how to clone an entity with JPA or Hibernate? Recently, I stumbled upon this Hibernate forum question and it reminded me that this was a common requirement when working with JPA and Hibernate. In this article, we are going to see the best way to clone a JPA entity with JPA and Hibernate.