Hibernate Articles
2 articles about Hibernate. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Implement Multi-Tenancy in Spring Boot
A guide to implementing multi-tenancy (Database/Schema/Shared-schema) with Spring Boot 3.2 and Hibernate 6.4, explained with comparison tables and working code. Covers everything from MultiTenantConnectionProvider to tenant resolution Filters using JWT/headers.
-
How to Implement Soft Delete with Spring Boot + JPA - Choosing Between @SQLDelete, @SQLRestriction, and Filter
This article explains how to transparently implement soft delete (logical deletion) with Spring Boot 3.x + Hibernate 6.4. It organizes a comparison between @SQLDelete + @SQLRestriction (formerly @Where) and @SoftDelete / @FilterDef so you can quickly choose the right approach, and summarizes common pitfalls such as unique constraint conflicts, restoration handling, and recording who deleted the record.