Hibernate Basics

Configure Hibernate with Spring Boot

Learn to configure hibernate/JPA support in Spring Boot2 applications, along with creating entity classes and extending inbuilt JpaRepository interfaces.

Hibernate save vs saveOrUpdate vs update: Hibernate 7 Guide

Hibernate save(), update() and saveOrUpdate() were deprecated in Hibernate 6 and removed in Hibernate 7. We run the old methods on Hibernate 6.6, then show how persist() and merge() replace them for new, detached and managed entities.

Hibernate Ehcache Configuration: ehcache.xml for Hibernate 7

Configure Ehcache 3 for Hibernate 7 with ehcache.xml: one cache per region, templates, ttl/tti expiry, heap and offheap sizing, missing_cache_strategy, concurrency strategies and per-region statistics, all verified by a runnable project.

RESTEasy Bean Validation using Hibernate Validator Provider

The Bean Validation API (JSR-303) defines a meta-data model and API for bean validation based on annotations. The functionality is achieved through the resteasy-hibernatevalidator-provider component. In order to integrate, we need to add resteasy-hibernatevalidator-provider.jar and hibernate-validator.jar files to the classpath. If you are using maven the, you need to add …

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.