# Spring-Data-JPA **Repository Path**: xhylgogo/Spring-Data-JPA ## Basic Information - **Project Name**: Spring-Data-JPA - **Description**: SpringBoot整合Spring Data JPA实现简单分页查询和多表关联查询,CRUD操作 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2021-04-09 - **Last Updated**: 2022-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #Spring Data JPA 1.实现与概念:常见的ORM框架中Hibernate的JPA最为完整,因此Spring Data JPA 是采用基于JPA规范的Hibernate框架基础下提供了Repository层的实现。Spring Data Repository极大地简化了实现各种持久层的数据库访问而写的样板代码量,同时CrudRepository提供了丰富的CRUD功能去管理实体类。
2.优点:
(1)丰富的API,简单操作无需编写额外的代码
(2)丰富的SQL日志输出
3.缺点:
(1)学习成本较大,需要学习HQL
(2)配置复杂,虽然SpringBoot简化的大量的配置,关系映射多表查询配置依旧不容易
(3)性能较差,对比JdbcTemplate、Mybatis等ORM框架,它的性能无异于是最差的