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.
-
MyBatis vs JPA in Spring Boot - Selection Criteria and Combined Usage Patterns [With Comparison Table]
Wondering whether to choose MyBatis or JPA for your Spring Boot project? This article organizes SQL control flexibility, learning cost, performance, and maintainability in a comparison table, and explains practical decision flowcharts, the difference between #{} and ${}, and concrete configuration examples for using both together. Get all the decision criteria in one place.