Springdata,jpa,mongodb,solr,elasticsearch underlying logical relationships

Source: Internet
Author: User
Tags solr

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.