The performance penalty of Class.forName when parsing JPQL and Criteria queries

Introduction While reviewing this Hibernate Pull Request, I stumbled on the HHH-10746 Jira issue. After doing some research, I realized that this issue was reported multiple times in the past 10 years: HHH-1810 HHH-4959 HHH-11246 In this post, I’m going to explain why this issue was causing performance issues, and how it got fixed.