自学SpringData--01技术介绍

SpringData

使用的工具

  • JDK1.8.0_181
  • Eclipse
  • Hibernate:5.0.7 Final
  • Spring:4.2.0 RELEASE
  • Spring Data JPA : 1.9.0 RELEASE
  • Spring Data Redis: 1.6.0 RELEASE

Hibernate

在这里插入图片描述

JPA标准

在这里插入图片描述

Hibernate JPA

Hibernate在3.2以后根据JPA规范提供了一套持久层的API

Spring Data

Spring Data’s mission is to provide a familiar and consistent, Spring-based programming model for data access while still retaining the special traits of the underlying data store.
It makes it easy to use data access technologies, relational and non-relational databases, map-reduce frameworks, and cloud-based data services. This is an umbrella project which contains many subprojects that are specific to a given database. The projects are developed by working together with many of the companies and developers that are behind these exciting technologies.

Spring Data的任务是为数据访问提供一个熟悉的、一致的、基于Spring应用对数据访问的模型,同时仍然保留底层数据存储的特性。
简单来说:其实它就是给我们提供对数据访问的一个技术,但是它也不是一个具体的技术,它是一个平台的名称。在Spring Data的平台下,它包含了许多其他的模块用于访问不同的存储模型。其实我们知道,对于数据的存储不仅仅指的是我们关系型数据库,还是像Redis内存型数据库、Mongodb。所以说它一个平台,

在这里插入图片描述

  • 我们来看看Spring Data JPA

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.
SpringData JPA是Spring Data大家族的一部分,它使得很容易实现基于JPA的存储库。此模块处理其实就是对基于JPA的数据访问层的增强支持。它使构建使用数据访问技术的Spring应用程序变得更容易。
说明:Spring Data JPA底层默认的使用的是Hibernate来做的JPA实现。

  • 我们再来看看Spring Data JPA

Spring Data Redis, part of the larger Spring Data family, provides easy configuration and access to Redis from Spring applications. It offers both low-level and high-level abstractions for interacting with the store, freeing the user from infrastructural concerns.
Spring Data Redis是Spring Data大家族的一部分,它提供了从Spring应用程序轻松配置和访问Redis的功能。它提供了与商店交互的低层和高层抽象,让用户从基础设施问题中解放出来。
简单来说:它提供了一套API,可以简化或者是方便我们操作Redis数据库

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值