Data Access Articles
2 articles about Data Access. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Implement Soft Delete in Spring Boot + JPA - Choosing Between @SQLDelete, @SQLRestriction, and Filter
A guide to transparently implementing soft delete (logical delete) in Spring Boot + Spring Data JPA. Covers when to use @SQLDelete + @SQLRestriction (formerly @Where) vs. @SoftDelete and @FilterDef, along with practical pitfalls like unique constraint conflicts, restoration handling, and recording the deleter.
-
Which Should You Choose in Spring Boot: MyBatis or JPA? - Selection Criteria and Combined Usage Patterns
Are you unsure whether to choose MyBatis or JPA for your Spring Boot project? This article provides a thorough comparison of both from the perspectives of SQL control flexibility, learning cost, and maintainability, and presents practical selection criteria such as JPA for CRUD-focused use cases and MyBatis for complex reporting screens. Also covers how to implement a combined usage pattern.