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

  • Spring 5.0 By Example
  • Claudio Eduardo de Oliveira
  • 272字
  • 2021-06-24 19:17:40

Spring Data project

The Spring Data project is an umbrella project that offers a familiar way to create our data access layer on a wide range of database technologies. It means there are high-level abstractions to interact with different kinds of data structures, such as the document model, column family, key-value, and graphs. Also, the JPA specification is fully supported by the Spring Data JPA project.

These modules offer powerful object-mapping abstractions for our domain model.

There is support for different types of data structures and databases. There is a set of sub-modules to keep the framework modularity. Also, there are two categories of these sub-modules: the first one is a subset of projects supported by the Spring Framework Team and the second one is a subset of sub-modules provided by the community.

Projects supported by the Spring Team include:

  • Spring Data Commons
  • Spring Data JPA
  • Spring Data MongoDB
  • Spring Data Redis
  • Spring Data for Apache Cassandra

Projects supported by the community include:

  • Spring Data Aerospike
  • Spring Data ElasticSearch
  • Spring Data DynamoDB
  • Spring Data Neo4J

The base of the repositories interfaces chain is the Repository interface. It is a marker interface, and the general purpose is to store the type information. The type will be used for other interfaces that extend it.

There is also a CrudRepository interface. It is the most important, and the name is self-explanatory; it provides a couple of methods to perform CRUD operations, and it provides some utility methods, such as count(), exists()and deleteAll(). Those are the most important base interfaces for the repository implementations.

主站蜘蛛池模板: 沁源县| 通山县| 望谟县| 老河口市| 黄骅市| 临朐县| 怀远县| 宜兴市| 宜兴市| 从江县| 乌拉特后旗| 丰都县| 庆云县| 呼伦贝尔市| 丽江市| 林州市| 孝义市| 阿拉尔市| 长岛县| 营山县| 灌南县| 新丰县| 乌恰县| 宁海县| 陆丰市| 榆中县| 句容市| 昂仁县| 潢川县| 黄陵县| 舟山市| 光泽县| 金寨县| 阳江市| 广德县| 白山市| 蚌埠市| 翁牛特旗| 济宁市| 汉中市| 平山县|