Hibernate 5 Bootstrapping API 1. Overview In this tutorial, we’ll explore the new mechanism by which we can initialize and start a Hibernate SessionFactory. We’ll especially focus on the new native bootstrapping process as it was redesigned in version 5.0. Prior to version 5.0, applications had to use the Configuration class to bootstrap the SessionFactory.… Continue Reading hibernate-5-bootstrapping-api

Stored Procedures with Hibernate 1. Overview Stored Procedures are sets of compiled SQL statements residing in the database. They are used to encapsulate and share logic with other programs, and benefit from database-specific features like index hints or specific keywords. This article demonstrates how to use Hibernate to call a… Continue Reading stored-procedures-with-hibernate-tutorial

HibernateException: No Hibernate Session Bound to Thread in Hibernate 3 1. Introduction In this short tutorial, we’ll clarify when “No Hibernate Session Bound to Thread” exception gets thrown and how to resolve it. We’ll be focusing here on two different scenarios: using the LocalSessionFactoryBean using the AnnotationSessionFactoryBean 2. The Cause… Continue Reading no-hibernate-session-bound-to-thread-exception

Spring Persistence Tutorial This tutorial series focuses on doing Persistence with Spring – illustrating examples with Hibernate, JPA and Spring Data. Core Persistence + Hibernate 4 with Spring + Hibernate 5 with Spring + JPA with Spring (popular) + Persistence with Spring Data JPA (popular) + Spring Data Java 8 Support +… Continue Reading persistence-with-spring-series

3 Common Hibernate Performance Issues and How to Find Them in Your Log File Logging Persistence Hibernate 1. Introduction You’ve probably read some of the complaints about bad Hibernate performance or maybe you’ve struggled with some of them yourself. I have been using Hibernate for more than 15 years now… Continue Reading hibernate-common-performance-problems-in-logs

Hibernate Field Naming with Spring Boot 1. Introduction In this brief tutorial, we’ll see how to use the Hibernate naming strategies in a Spring Boot application. 2. Maven Dependencies If we begin with a Maven-based Spring Boot application, and we are happy to embrace Spring Data, then we just need… Continue Reading hibernate-field-naming-spring-boot