Spring Data JPA: From Beginner to Expert
Tags
Summary
Editor's review
Who it's for
A good fit for
- 使用 Spring Boot 开发后端、需要系统掌握持久层写法的 Java 工程师
- 已经会写简单 Repository,但不懂查询方法生成机制与扩展接口的开发者
- 需要处理多数据源、事务、乐观锁等实际问题的项目组成员
- 讲授 Java Web 与 Spring 全家桶课程的高校教师和培训讲师
Not a good fit for
- 完全没有 Java 与 Spring 基础、尚在学语法的零基础读者
- 主要使用 MyBatis 或原生 SQL、对 JPA 体系无需求的开发者
- 希望深入 Hibernate 内核源码与数据库底层实现的高级研究者
Reading tips
- 先通读第1—2章建立 Repository 层次图,后续所有查询写法都能挂在这张图上理解。
- 第3—5章边读边在本地 Spring Boot 工程里复现示例,重点体会方法名查询与 @Query 的取舍。
- 第6—8章结合自己项目中的数据源与事务配置对照阅读,把多数据源、乐观锁部分当作排错手册。
- 第9—12章可按需选读;如果只用 JPA 做 CRUD,Redis 与 Spring Data REST 章节了解思路即可。
About the publisher
Founded in 1980, Tsinghua University Press has 57 titles in our collection, covering popular science, medicine, health, law, philosophy and social sciences. Representative works include medical popular-science books such as Cancer Truth: Doctors Are Reading It Too and New Knowledge on Cancer by Bo Luo (Li Zhizhong), legal titles such as Sunshine Is the Best Preservative: Express Delivery of Major Global Anti-Corruption Cases, and works like Qi Ge's A Brief History of Philosophy with Big Ideas and Liu Yunhao's From the Internet to a New Industrial Revolution. Its authors include science writers, medical researchers, the Renmin University of China anti-corruption master's class and university scholars, reflecting a publishing profile that balances academic seriousness with accessible reading. As public information is limited, this profile is based only on the titles in our collection.
Contents
- Part I Basics
- Chapter 1 Understanding JPA as a Whole
- Chapter 2 Basic JPA Query Methods (Spring Data Common's Repository, Class Hierarchy, CrudRepository, PagingAndSortingRepository, JpaRepository, SimpleJpaRepository)
- Chapter 3 Defining Query Methods (Configuration Methods, Query Strategy Settings, Query Method Creation, Keyword List, Property Expressions, Query Result Handling, Implementation Mechanism)
- Chapter 4 Annotation-Based Query Methods (@Query, @Param, SpEL Support, @Modifying, @QueryHints, @Procedure, @NamedQueries)
- Chapter 5 Detailed Explanation of Common Annotations in @Entity Instances (Overview of javax.persistence, Basic Annotations, Association Annotations, Left Join and Inner Join and @EntityGraph, Pitfalls in Relational Queries)
- Part II Advanced
- Chapter 6 Detailed Explanation of JpaRepository Extensions (QueryByExampleExecutor, JpaSpecificationExecutor, Custom Repository)
- Chapter 7 Extensions of Spring Data JPA (Auditing and Events, @Version Optimistic Locking, MvcWeb Support, @EnableJpaRepositories, Default Logging, Spring Boot JPA Version Issues)
- Chapter 8 DataSource Configuration (Default Data Source, DruidDataSource, Transaction Handling, Multiple Data Sources, Naming Strategy, Traditional XML Configuration)
- Part III Extensions
- Chapter 9 IntelliJ IDEA and Spring JPA (Database Plugin, Persistence and JPA-Related Plugins, Source Code Analysis View)
- Chapter 10 Detailed Explanation of Spring Data Redis (Using Jedis, Spring Boot + Spring Data Redis Configuration, Combining with Spring Cache)
- Chapter 11 SpEL Expressions (Introduction, Basic Syntax, Main Classes and Principles, Main Usage Scenarios in Spring)
- Chapter 12 Spring Data REST (Quick Start, Customization, Spring Boot 2.0 Loading Principles, Future Development)
FAQ
这本书适合零基础学 Java 的人吗?
书中的技术版本是否已经过时?
和第 2 版《Spring Data JPA 入门实战与进阶》有什么区别?
需要提前准备什么环境?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.