Recently, I got a very good question on Twitter, and I decided that the best way to answer it is with a new article.
In this article, we are going to see how various ways to map an Enum using JPA and Hibernate.
Continue reading “The best way to map an Enum Type with JPA and Hibernate”
If you’ve been using Hibernate long enough, then you surely must have seen this WARN log message when doing pagination while join fetching multiple entities.
HHH000104: firstResult/maxResults specified with collection fetch; applying in memory!
In this article, I’m going to show a very elegant solution to fix this issue.
Continue reading “The best way to fix the Hibernate “HHH000104: firstResult/maxResults specified with collection fetch; applying in memory!” warning message”
I found this question on the Hibernate forum, and it’s a very good opportunity to show why mastering Windows Functions is a very important skill for any backend software developer.
Continue reading “Why you should definitely learn SQL Window Functions”
Lukas Eder has posted a very interesting question on Stack Overflow, asking about a way of getting access to the binding metadata between entity mappings and database tables.
While I have previously answered a similar question using this article, I realized that case was much simpler since it only extracted the database metadata. In this article, you are going to see how easily you can get the bridge information between your JPA entities and the underlying database schema.
Continue reading “How to get the entity mapping to database table binding metadata from Hibernate”