官术网_书友最值得收藏!

Spring Data JPA

The Spring Data JPA provides an easy way to implement a data access layer using the JPA specification from Java EE. Usually, these implementations had a lot of boilerplate and repetitive code and it was hard to maintain the changes in the database code. The Spring Data JPA is trying to resolve these issues and provides a comprehensible way to do that without boilerplate and repetitive code.

The JPA specification provides an abstraction layer to interact with different database vendors that have been implemented. Spring adds one more layer to the abstraction in a high-level mode. It means the Spring Data JPA will create a repositories implementation and encapsulate the whole JPA implementation details. We can build our persistence layer with a little knowledge of the JPA spec.

The JPA Specification was created by the JCP ( Java Community Process) to help developers to persist, access, and manage data between Java classes and relational databases. There are some vendors that implement this specification. The most famous implementation is Hibernate ( http://hibernate.org/orm/), and by default, Spring Data JPA uses Hibernate as the JPA implementation.

Say goodbye to the DAO (Data Access Object) pattern and implementations. The Spring Data JPA aims to solve this problem with a well-tested framework and with some production-ready features.

Now, we have an idea of what the Spring Data JPA is. Let's put it into practice.

主站蜘蛛池模板: 虞城县| 藁城市| 安化县| 徐闻县| 苗栗县| 个旧市| 嵊州市| 西充县| 清苑县| 绥芬河市| 白银市| 香河县| 霍林郭勒市| 鲁甸县| 黑龙江省| 宾阳县| 宕昌县| 汽车| 梅河口市| 彰化市| 金平| 伊金霍洛旗| 南漳县| 大余县| 莱州市| 嘉祥县| 吉安市| 延庆县| 陇南市| 鄂州市| 河曲县| 来宾市| 繁昌县| 西乌珠穆沁旗| 万宁市| 来安县| 贵阳市| 信宜市| 股票| 松原市| 正宁县|