1 Star 1 Fork 0

gsean-springboot/spring-data-jpa-guide

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

spring-data-jpa-guide

http://www.jackzhang.cn/spring-data-jpa-guide/

Spring Data Jpa 实战

Spring Data Redis 正确使用姿势

Spring DATA JPA 扩展阅读

  1. Spring Data JPA 晋级提升篇:复杂场景实战用法与优化

  2. Session与CompletableFuture的使用遇到的一些坑

  3. SpringDataJpa之Hibernate5.0的Entity判断Dirty的过程

  4. SpringDataJPA之Hibernate加载过程

  5. 高级用法学习资料: https://github.com/eugenp/tutorials/tree/master/spring-rest-query-language

源码说明:

源码太分散不利于大家查找,所以就给大家放在一起了,可以根据需要自取。

  1. 1.5.9对应的文件夹 是《Spring Data JPA入门到精通》书上对应的源码
  2. 2.0.0对应的文件夹是《Spring Data JPA实战》书上对应的源码
  3. Java并发编程入门到精通是《Java并发编程入门到精通》书上对应的源码
  4. 2.3 对应的是《Spring Data JPA:入门、实战与进阶》书上的源码,预计2021-10 JD能上架出售

欢迎大家一起修改和提交

  1. 提issue或者mr都可以 https://github.com/zhangzhenhuajack/spring-data-jpa-guide
  2. 同时注意issue和wiki的更新 https://github.com/zhangzhenhuajack/spring-data-jpa-guide

第三方资料阅读指南

阅读文档顺序:

1. SpringDataJPA:https://docs.spring.io/spring-data/jpa/docs/current/reference/html/
2. JPA协议重点:https://docs.oracle.com/javaee/5/tutorial/doc/bnbqa.html
3. Hibernate文档:https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.htm
4. JPA详细协议:https://github.com/eclipse-ee4j/jpa-api
5. 扩展阅读:

https://github.com/eugenp/tutorials/tree/master/persistence-modules/spring-data-jpa
https://github.com/eugenp/tutorials/tree/master/persistence-modules/spring-data-jpa-2
https://github.com/eugenp/tutorials/tree/master/persistence-modules/spring-data-jpa-3
https://github.com/eugenp/tutorials/tree/master/persistence-modules/spring-data-jpa-4

6.Tips:

https://dzone.com/articles/50-best-performance-practices-for-hibernate-5-amp
https://dzone.com/articles/best-performance-practices-for-hibernate-5-and-spr
https://vladmihalcea.com/how-to-implement-equals-and-hashcode-using-the-jpa-entity-identifier/

推荐查阅文档

  1. https://github.com/eclipse-ee4j/jpa-api
  2. https://github.com/eugenp/tutorials/tree/master/persistence-modules/spring-data-jpa
  3. https://docs.spring.io/spring-data/data-jpa/docs/
  4. https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#architecture-overview
  5. https://www.docs4dev.com/docs/zh/hibernate-orm/5.4/reference/hibernate_user_guide.html
  6. https://github.com/zhangzhenhuajack/spring-data-jpa-guide/blob/master/doc/High-Performance.Java.Persistence.pdf
  7. https://github.com/zhangzhenhuajack/spring-data-jpa-guide/blob/master/doc/JavaPersistence2.2.0.pdf
  8. https://github.com/zhangzhenhuajack/spring-data-jpa-guide/blob/master/doc/SpringDataJPA全面认识.key

如果大家觉得有用欢迎请老师喝瓶水或者喝杯咖啡:

常见ISSUE

  1. Spring Data JPA利用@EntityGraph解决N+1的SQL查询问题: @OnetoOne @OneToMany https://github.com/zhangzhenhuajack/spring-data-jpa-guide/issues/36
  2. 禁用spring.jpa.show-sql=true ;原因:https://github.com/zhangzhenhuajack/spring-data-jpa-guide/issues/39
  3. spring data jpa在保存数据的时候,会有缓存问题吗 https://github.com/zhangzhenhuajack/spring-data-jpa-guide/issues/38
  4. 如果在Dirty判断的时候,当前session中缓存对比数据库来讲已经不是最新的。那么JPA会如何进行处理?https://github.com/zhangzhenhuajack/spring-data-jpa-guide/issues/34
  5. 解决save的时候不产生select语句,直接insert,提高批量操作是提升insert的效率 https://github.com/zhangzhenhuajack/spring-data-jpa-guide/issues/31

QQ交流群:559701472

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/gsean-springboot/spring-data-jpa-guide.git
git@gitee.com:gsean-springboot/spring-data-jpa-guide.git
gsean-springboot
spring-data-jpa-guide
spring-data-jpa-guide
master

搜索帮助