A consistent Spring programming model for data access
open sourceApache-2.0free
Spring Data is the Spring umbrella project that gives Java applications a familiar, consistent Spring-based programming model for data access while keeping each data store's own traits. Its shared core, Spring Data Commons, provides repository and object-mapping abstractions, query derivation from repository method names, auditing (created and last changed), custom repository code and Spring integration through JavaConfig and XML namespaces; store-specific modules add repositories for JPA, JDBC and R2DBC (Spring Data Relational), MongoDB, Redis, Apache Cassandra, LDAP and key-value stores, and Spring Data REST exports repositories as hypermedia-driven REST resources. Community modules cover Couchbase, Elasticsearch, Neo4j, DynamoDB, Azure Cosmos DB, Google Spanner and more. It builds on Spring Framework.
Problems it solves
- stop writing repetitive DAO code for my Spring Boot app's database access
- query my database from Java by naming repository methods instead of writing SQL
- use the same repository style across SQL and NoSQL stores in a Spring app
Features
- repository and custom object-mapping abstractions
- query derivation from repository method names
- transparent auditing of created and last-changed fields
- modules for JPA, JDBC and R2DBC, MongoDB, Redis, Cassandra, LDAP and key-value stores
- Spring Data REST: repositories exported as hypermedia REST resources
- community modules for Couchbase, Elasticsearch, Neo4j, DynamoDB and more
Alternatives
The same job
These do what Spring Data does.
- jOOQ Typesafe SQL query builder and code generator for Java
- MyBatis-Plus Enhancement toolkit for MyBatis that cuts boilerplate in Java data access
- MyBatis SQL mapper persistence framework for Java
- Hibernate ORM Idiomatic persistence for Java and relational databases
- Exposed The SQL library for Kotlin
