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

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.

主站蜘蛛池模板: 泰宁县| 兴文县| 定边县| 枞阳县| 洛宁县| 郧西县| 札达县| 南投市| 灯塔市| 平遥县| 定州市| 攀枝花市| 乌兰察布市| 张家界市| 九寨沟县| 苏尼特右旗| 水城县| 瑞昌市| 汉沽区| 黔南| 马龙县| 江达县| 资阳市| 新郑市| 呼伦贝尔市| 老河口市| 商河县| 斗六市| 健康| 温泉县| 临城县| 肃南| 孟州市| 三台县| 榆社县| 卓尼县| 呼伦贝尔市| 鄂伦春自治旗| 云和县| 潞西市| 来凤县|