A: Spring-data the bottom of the interface subgrade:
Spring-data:pagingandsortingrepository-> crudrepository-> Repository, it is Springdatajpa,solr,mongodb, The core foundation of Elasticsearch.
There are three main interfaces:
1. Repository<t, id> {} NULL interface
2.crudrepository<t, Id>extends repository<t, id> is mostly crud interface
3.pagingandsortingrepository<t, Id>extends crudrepository<t, id> is mainly a method of pagination sorting and Cdur
Two: About SPRING-DATA-JPA
SPRING-DATA-JPA: It has only one core interface is jparepository, its interface roadbed relationship is:
Jparepository<t, ID extends Serializable>extends pagingandsortingrepository<t, Id> Querybyexampleexecutor<t>crud page Sorting and other methods have
Three: About SPRING-DATA-SOLR, its interface roadbed relationship is: solrrepository->repository, it has two core base interfaces:
1.solrrepository<t, ID extends Serializable>extends repository<t, id>
2.solrcrudrepository-> solrrepository<t, Id>, pagingandsortingrepository
Four: About Spring-data-mongodb, its interface subgrade is mongorepository->pagingandsortingrepository, and it has a core interface that is
1.mongorepository<t, ID extends serializable> extends Pagingandsortingrepository<t, Id> Querybyexampleexecutor<t>
V: spring-data-elasticsearch: Its interface subgrade is elasticsearchpagingandsortingrepository-> elasticsearchcrudrepository- > Elasticsearchrepository, it has two core-based interfaces:
1.elasticsearchrepository<t, ID extends Serializable>extends elasticsearchcrudrepository<t, ID>
2.elasticsearchcrudrepository<t, ID extends Serializable>extends pagingandsortingrepository<t, ID>
Springdata,jpa,mongodb,solr,elasticsearch underlying logical relationship