Spring Data JPA 2.2.6

Spring Data JPA, part of the larger Spring Data family, makes it easy to easily implement JPA based repositories. This module deals with enhanced support for JPA based data access layers. It makes it easier to build Spring-powered applications that use data access technologies.

Implementing a data access layer of an application has been cumbersome for quite a while. Too much boilerplate code has to be written to execute simple queries as well as perform pagination, and auditing. Spring Data JPA aims to significantly improve the implementation of data access layers by reducing the effort to the amount that’s actually needed. As a developer you write your repository interfaces, including custom finder methods, and Spring will provide the implementation automatically.
Features

Sophisticated support to build repositories based on Spring and JPA

Support for Querydsl predicates and thus type-safe JPA queries

Transparent auditing of domain class

Pagination support, dynamic query execution, ability to integrate custom data access code

Validation of @Query annotated queries at bootstrap time

Support for XML based entity mapping

JavaConfig based repository configuration by introducing @EnableJpaRepositories.

Spring Initializr
Quickstart Your Project
Bootstrap your application with Spring Initializr.

translate:
翻译:

Spring数据JPA是更大Spring数据家族的一部分,它使得很容易实现基于JPA的存储库。此模块处理对基于JPA的数据访问层的增强支持。它使构建使用数据访问技术的Spring应用程序变得更加容易。

实现应用程序的数据访问层已经相当长一段时间了。为了执行简单查询、分页和审计,必须编写太多样板代码。Spring Data JPA的目标是通过减少实际需要的工作量来显著改进数据访问层的实现。作为开发人员,您可以编写存储库接口,包括自定义finder方法,Spring将自动提供实现。

特征
基于Spring和JPA构建存储库的高级支持
支持Querydsl谓词,因此支持类型安全的JPA查询
域类的透明审计
分页支持,动态查询执行,能够集成自定义数据访问代码
在引导时验证@Query注释查询
支持基于XML的实体映射
通过引入@EnableJpaRepositories,基于JavaConfig的存储库配置。
弹簧初始化器
快速启动项目
使用Spring初始化器引导应用程序。

发布了0 篇原创文章 · 获赞 152 · 访问量 7067

猜你喜欢

转载自blog.csdn.net/blog_programb/article/details/105242418