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

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.

主站蜘蛛池模板: 大宁县| 句容市| 周宁县| 重庆市| 牙克石市| 塔城市| 剑河县| 封开县| 全南县| 府谷县| 田阳县| 固阳县| 皮山县| 响水县| 报价| 乌鲁木齐县| 玉门市| 华安县| 拉萨市| 海宁市| 威海市| 阿合奇县| 腾冲县| 松桃| 宿迁市| 瑞昌市| 健康| 壶关县| 镇康县| 平陆县| 霸州市| 太仓市| 信丰县| 商丘市| 保山市| 绵阳市| 三亚市| 当阳市| 临武县| 西林县| 宕昌县|