Tagged articles

Spring Data JPA

28 articles · Page 1 of 1
Xiaolin Talks Programming
Xiaolin Talks Programming
Aug 27, 2026 · Backend Development

Why Your Deep Pagination Is Slow: LIMIT OFFSET vs Keyset Pagination in Spring Boot

This article analyzes the performance bottleneck of LIMIT OFFSET deep pagination in MySQL with millions of rows, demonstrates EXPLAIN plan analysis, compares traditional pagination, subquery, covering index, and keyset pagination approaches, provides Spring Boot implementation examples for MyBatis-Plus and JPA, and benchmarks showing keyset pagination maintains constant response time regardless of page depth.

Cursor PaginationDeep PaginationLIMIT OFFSET
0 likes · 22 min read
Why Your Deep Pagination Is Slow: LIMIT OFFSET vs Keyset Pagination in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 2, 2026 · Backend Development

Why Spring Boot Prefers Slice Over Page for Massive Data Sets

The article analyzes Spring Data JPA's Page and Slice pagination options, explains the hidden COUNT(*) overhead of Page, demonstrates both approaches with code examples, compares performance and UX impacts, and provides guidance on when to choose Slice for large‑scale or infinite‑scroll scenarios.

BackendPerformanceSpring Boot
0 likes · 11 min read
Why Spring Boot Prefers Slice Over Page for Massive Data Sets
CodeSmart Hoops
CodeSmart Hoops
Jun 14, 2026 · Backend Development

JPA Full Guide: Interview Self‑Test with Answers

This article provides a comprehensive interview self‑test covering JPA, Hibernate, and Spring Data JPA, including entity lifecycle states, repository proxy creation, PartTree method parsing, first‑level cache behavior, dirty checking, transaction binding, N+1 query problems, lazy loading exceptions, JPQL vs native queries, save vs persist differences, and the semantics of findAll returning an empty collection.

EntityHibernateJPA
0 likes · 19 min read
JPA Full Guide: Interview Self‑Test with Answers
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 12, 2026 · Backend Development

Reproducing Three Classic Spring Boot Concurrency Deadlocks in Just 10 Lines

The article explains three typical deadlock scenarios in Spring Boot 3.5—circular‑wait, connection‑pool starvation, and implicit DML deadlocks—shows minimal 10‑line code reproductions, demonstrates the resulting errors, and provides concrete fixes such as ordered locking, removing REQUIRES_NEW propagation, and using asynchronous events.

@TransactionalConcurrencyJava
0 likes · 9 min read
Reproducing Three Classic Spring Boot Concurrency Deadlocks in Just 10 Lines
Java Tech Workshop
Java Tech Workshop
Apr 2, 2026 · Backend Development

SpringBoot + JPA/Hibernate: Zero XML, Zero SQL – Fast Data Layer Setup

This tutorial walks through integrating SpringBoot with JPA (Hibernate) from adding dependencies to configuring the datasource, defining entities, using JpaRepository, building service and controller layers, applying method‑naming rules, writing custom queries, comparing JPA with MyBatis and JdbcTemplate, and highlighting key pitfalls for rapid, low‑boilerplate data‑access development.

CRUDHibernateJPA
0 likes · 11 min read
SpringBoot + JPA/Hibernate: Zero XML, Zero SQL – Fast Data Layer Setup
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 7, 2025 · Backend Development

Unlock 6 Powerful Spring Data JPA Features for Faster Development

This article introduces Spring Data JPA and demonstrates six advanced capabilities—including Optional return types, Stream API, asynchronous CompletableFuture queries, offset‑based scrolling, and keyset‑based scrolling—each illustrated with concise code examples and execution results to boost productivity and performance.

@AsyncKeyset ScrollingOptional
0 likes · 8 min read
Unlock 6 Powerful Spring Data JPA Features for Faster Development
Su San Talks Tech
Su San Talks Tech
Oct 18, 2025 · Backend Development

MyBatis vs Spring Data JPA: Which Should Power Your Spring Boot Project?

This article compares MyBatis and Spring Data JPA, explaining their core concepts, performance, flexibility, learning curve, community support, and real‑world scenarios, and provides code examples and decision criteria to help developers choose the right data‑access framework for their Spring Boot applications.

JavaMyBatisORM
0 likes · 14 min read
MyBatis vs Spring Data JPA: Which Should Power Your Spring Boot Project?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 10, 2025 · Backend Development

Master Spring Data JPA: 131 Real‑World Spring Boot 3 Cases & Best Practices

This article presents a comprehensive guide to Spring Data JPA in Spring Boot 3, covering 131 practical cases, core repository interfaces, Specification and Criteria Builder techniques, and dozens of performance‑optimizing tips such as lazy loading, caching, batch processing, transaction management, projections, and stream queries.

JavaJpaRepositorySpring Boot
0 likes · 15 min read
Master Spring Data JPA: 131 Real‑World Spring Boot 3 Cases & Best Practices
Programmer DD
Programmer DD
Aug 9, 2024 · Backend Development

Discover the Most Powerful IntelliJ IDEA 2024.2 Features for Java & Kotlin Developers

IntelliJ IDEA 2024.2 introduces a suite of developer‑focused enhancements—including instant Spring Data JPA queries, cron expression auto‑completion, GraalJS‑powered HTTP client, advanced log management, real‑time performance charts, and rich data‑format visualizers—designed to boost productivity for Java and Kotlin programmers.

GraalJSIntelliJ IDEAJava
0 likes · 6 min read
Discover the Most Powerful IntelliJ IDEA 2024.2 Features for Java & Kotlin Developers
JavaEdge
JavaEdge
Aug 8, 2024 · Fundamentals

What’s New in IntelliJ IDEA 2024.2? Key Features and Improvements

IntelliJ IDEA 2024.2 introduces a suite of enhancements—including in‑IDE Spring Data JPA execution, smarter cron expression handling, GraalJS‑powered HTTP client, faster startup, improved code completion, new UI defaults, advanced Scala support, Markdown math rendering, and focused profiling—to boost developer productivity across Java and other languages.

CronGraalJSIDE Features
0 likes · 14 min read
What’s New in IntelliJ IDEA 2024.2? Key Features and Improvements
macrozheng
macrozheng
Jan 4, 2024 · Backend Development

How DDD and Spring Data JPA Simplify Order Management in Java

This article explains how Domain‑Driven Design (DDD) combined with Spring Data JPA enables clean, object‑oriented modeling of order workflows, introduces the Repository pattern for persistence, and demonstrates the full lifecycle—from creation to address modification and payment—through concise Java code and SQL examples.

DDDDomain-Driven DesignJava
0 likes · 21 min read
How DDD and Spring Data JPA Simplify Order Management in Java
macrozheng
macrozheng
Feb 6, 2023 · Backend Development

Mastering DDD with Spring Data JPA: Repositories, Lazy Loading, and Real‑World Order Example

This article explains how domain‑driven design (DDD) leverages object‑oriented principles and the Repository pattern, demonstrates integrating Spring Data JPA for persistence, and walks through a complete order lifecycle—including creation, address modification, and payment—showcasing lazy loading, automatic synchronization, and practical unit‑test examples.

DDDJavaSpring Data JPA
0 likes · 22 min read
Mastering DDD with Spring Data JPA: Repositories, Lazy Loading, and Real‑World Order Example
Programmer DD
Programmer DD
Apr 9, 2022 · Backend Development

Will Spring Data JPA Fail Under Load? Lessons from the New Nucleic Acid Code

After encountering repeated errors and timeouts while retrieving the newly introduced 'nucleic acid code' in China, the author uses the experience to discuss why Spring Data JPA can cause performance problems in high‑concurrency systems compared to MyBatis, urging careful framework selection and deep SQL knowledge.

HibernateJavaMyBatis
0 likes · 6 min read
Will Spring Data JPA Fail Under Load? Lessons from the New Nucleic Acid Code
Programmer DD
Programmer DD
Dec 6, 2021 · Backend Development

Why Mastering Spring Data JPA Is a Must for Modern Java Developers

This article introduces the Java Persistence API (JPA), explains why Spring Data JPA has become an essential skill for large companies, outlines its benefits for development efficiency and career growth, and recommends the comprehensive book “Spring Data JPA: From Basics to Advanced” with its detailed structure and practical examples.

Database AccessJavaJava Persistence API
0 likes · 27 min read
Why Mastering Spring Data JPA Is a Must for Modern Java Developers
Java Architecture Diary
Java Architecture Diary
Sep 14, 2021 · Backend Development

How to Compile Nacos with Oracle Support and Run It in Standalone Mode

Learn how to extend Nacos’s configuration persistence beyond Derby and MySQL by cloning the feature_multiple_datasource_support branch, compiling the source with Maven, configuring Oracle as a datasource in application.properties, and launching Nacos in standalone mode, with step‑by‑step commands and essential scripts.

BackendConfigurationNacos
0 likes · 3 min read
How to Compile Nacos with Oracle Support and Run It in Standalone Mode
Programmer DD
Programmer DD
Jul 2, 2021 · Backend Development

Why Does test4 Transaction Roll Back? Uncovering Spring Data JPA Mysteries

This article analyzes why the test4 transaction in Spring Data JPA rolls back, covering common pitfalls such as wrong storage engine, improper JPA usage, non‑public transactional methods, and the role of Bean Validation exceptions in triggering rollbacks.

Hibernate ValidatorJavaSpring Data JPA
0 likes · 9 min read
Why Does test4 Transaction Roll Back? Uncovering Spring Data JPA Mysteries
Programmer DD
Programmer DD
Jan 14, 2021 · Backend Development

Why Spring Data JPA Can Slow Down Team Maintenance and When to Choose MyBatis

The article compares Spring Data JPA and MyBatis, highlighting that while Spring Data JPA speeds up individual development, it can create maintenance challenges for teams, especially when tracking slow queries, and argues that MyBatis may be a better choice for collaborative projects.

Java persistenceMyBatisSpring Data JPA
0 likes · 3 min read
Why Spring Data JPA Can Slow Down Team Maintenance and When to Choose MyBatis
Programmer DD
Programmer DD
Feb 19, 2020 · Backend Development

Simplify CRUD with Spring Data JPA: From Setup to Unit Tests

This article explains how Spring Data JPA streamlines CRUD operations in Spring Boot by configuring dependencies, defining entity classes and repository interfaces, leveraging method‑name query derivation and @Query annotations, and validating functionality with comprehensive unit tests.

Spring Data JPAspring-boot
0 likes · 12 min read
Simplify CRUD with Spring Data JPA: From Setup to Unit Tests
Programmer DD
Programmer DD
Jul 9, 2019 · Backend Development

Master Transaction Locks in Spring Data JPA: Pessimistic vs Optimistic

This tutorial explains how to enable and configure transaction locks—including pessimistic and optimistic modes—in Spring Data JPA repositories, demonstrates the use of @Lock and @QueryHints annotations, and shows how to set lock timeouts to ensure data integrity under high concurrency.

JavaLockModeTypeOptimistic Lock
0 likes · 6 min read
Master Transaction Locks in Spring Data JPA: Pessimistic vs Optimistic