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

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.

主站蜘蛛池模板: 晴隆县| 怀远县| 外汇| 龙陵县| 襄城县| 新郑市| 牡丹江市| 承德市| 富源县| 崇左市| 简阳市| 玉环县| 玛纳斯县| 望谟县| 娄烦县| 中卫市| 黄平县| 南木林县| 崇文区| 胶南市| 论坛| 呈贡县| 娱乐| 汉川市| 尖扎县| 益阳市| 雅江县| 治多县| 阿拉善盟| 阳西县| 恭城| 漠河县| 洛扎县| 雅安市| 弥勒县| 乌苏市| 类乌齐县| 麻栗坡县| 马山县| 乐亭县| 林西县|