The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Courses ▼▲
    • REST with Spring

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security ▼▲

      THE unique Spring Security education if you’re working with Java today

      • Learn Spring Security Core

        Focus on the Core of Spring Security 5

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 5

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Guides ▼▲
    • Persistence

      The Persistence with Spring guides

    • REST

      The guides on building REST APIs with Spring

    • Security

      The Spring Security guides

  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

Category upPersistence

Spring Persistence

The persistence layer is vital to almost any application. Have a look at different ways to implement persistence in Spring. Learn how to work with Spring Persistence concepts through the list of guides below.

  • Spring Data JPA (42)
  • JPA (35)
  • Mongodb (22)
  • Hibernate (12)
  • SQL (12)
  • JDBC (7)
  • Spring Data REST (7)
  • Transactions (7)
  • Redis (6)
  • Cassandra (6)
  • Couchbase (5)
  • Repository (5)

>> Spring R2DBC Migrations Using Flyway

>> Using Java Records with JPA

>> How to configure Redis TTL with Spring Data Redis?

>> New CRUD Repository Interfaces in Spring Data 3

>> TRUNCATE TABLE in Spring Data JPA

>> Cassandra – Object Mapping with DataStax Java Driver

>> Spring Data Repositories – Collections vs. Stream

>> Fix EmptyResultDataAccessException When Using JdbcTemplate

>> Difference Between findBy and findAllBy in Spring Data JPA

>> Differences Between Spring Data JPA findFirst() and findTop()

>> Difference Between JPA and Spring Data JPA

>> NonUniqueResultException in Spring Data JPA

>> Persisting the Query Model

>> Patterns for Iterating Over Large Result Sets With Spring Data JPA

>> Connect to Multiple Databases Using Spring Data MongoDB

>> Multitenancy With Spring Data JPA

>> Spring JDBC Batch Inserts

>> Spring Data MongoDB – Configure Connection

>> Count Documents Using Spring Data MongoDB Repository

>> Spring Data Rest – Serializing the Entity ID

>> UUID as Entity ID in MongoDB

>> Unique Field in MongoDB Document in Spring Data

>> MongoDB Composite Key With Spring Data

>> Spring Data JPA – Run an App Without a Database

>> Using Transactions for Read-Only Operations

>> Configure MongoDB Collection Name for a Class in Spring Data

>> Joining Tables With Spring Data JPA Specifications

>> Return Only Specific Fields for a Query in Spring Data MongoDB

>> A Guide to @DBRef in MongoDB

>> Configure and Use Multiple DataSources in Spring Boot

>> How to Access EntityManager with Spring Data

>> Logging Queries with Spring Data Cassandra

>> Using Test Containers With Spring Data Cassandra

>> Spring Data with ArangoDB

>> How to Implement a Soft Delete with Spring JPA

>> Returning an Auto-Generated Id with JPA

>> Spring Boot Cache with Redis

>> Creating a Read-Only Repository with Spring Data

>> Performance Difference Between save() and saveAll() in Spring Data

>> Storing Files Indexed by a Database

>> Introduction to Spring Data Azure Cosmos DB

>> Introduction to Spring Data JDBC

>> Test a Mock JNDI Datasource with Spring

>> Injecting Spring Beans into Unmanaged Objects

>> Testing @Cacheable on Spring Data Repositories

>> Partial Data Update With Spring Data

>> Spring Data Redis’s Property-Based Configuration

>> Generate Database Schema with Spring Data JPA

>> Spring JPA @Embedded and @EmbeddedId

>> Using a List of Values in a JdbcTemplate IN Clause

>> Oracle Connection Pooling With Spring

>> Custom Naming Convention with Spring Data JPA

>> Spring JdbcTemplate Unit Testing

>> Connect Java to a MySQL Database

>> Calling Stored Procedures from Spring Data JPA Repositories

>> Customizing the Result of JPA Queries with Aggregation Functions

>> Intro to Spring Data Geode

>> Programmatic Transaction Management in Spring

>> Transaction Propagation and Isolation in Spring @Transactional

>> Transaction Support in Spring Integration

>> Using JaVers for Data Model Auditing in Spring Data

>> Repositories with Multiple Spring Data Modules

>> Spring Data Reactive Repositories with Couchbase

>> @DynamicUpdate with Spring Data JPA

>> A Quick Look at R2DBC with Spring Data

>> Disable Spring Data Auto Configuration

>> Setting the MySQL JDBC Timezone Using Spring Boot Configuration

>> Spring Data MongoDB Tailable Cursors

>> LIKE Queries in Spring JPA Repositories

>> Derived Query Methods in Spring Data JPA Repositories

>> Spring Data JPA and Named Entity Graphs

>> Spring Data JPA Delete and Relationships

>> Spring Data JPA Repository Populators

>> Spring Data Web Support

>> Spring Data JPA and Null Parameters

>> Case Insensitive Queries with Spring Data Repository

>> The Exists Query in Spring Data

>> Difference Between save() and saveAndFlush() in Spring Data JPA

>> Spring Data JPA – Derived Delete Methods

>> Spring Boot with Hibernate

>> Resolving “Failed to Configure a DataSource” Error

>> Spring Data JPA Batch Inserts

>> Spring Data JPA @Modifying Annotation

>> Spring Data JPA Query by Example

>> Configuring a DataSource Programmatically in Spring Boot

>> Integrating Spring Boot with HSQLDB

>> Pagination and Sorting using Spring Data JPA

>> Spring Boot With SQLite

>> Auto-Generated Field for MongoDB using Spring Boot

>> Spring Data with Reactive Cassandra

>> Sorting Query Results with Spring Data

>> Customizing HTTP Endpoints in Spring Data REST

>> Persisting DDD Aggregates

>> ZonedDateTime with Spring Data MongoDB

>> Limiting Query Results with JPA and Spring Data JPA

>> Hibernate Field Naming with Spring Boot

>> An Introduction to Spring Data Redis Reactive

>> Spring Data MongoDB Transactions

>> Spring Persistence Tutorial

>> Access the Same In-Memory H2 Database in Multiple Spring Boot Applications

>> Spring Data – CrudRepository save() Method

>> DDD Aggregates and @DomainEvents

>> Use Criteria Queries in a Spring Data Application

>> Spring Data Composable Repositories

>> Spring Session with JDBC

>> Query Entities by Dates and Times with Spring Data JPA

>> Spring Boot Integration Testing with Embedded MongoDB

>> Spring Boot with Multiple SQL Import Files

>> Spring AMQP in Reactive Applications

>> Spring Data Reactive Repositories with MongoDB

>> A Guide to Spring Data Key Value

>> Spring Data REST Events with @RepositoryEventHandler

>> Spring Data Annotations

>> Spring Data JPA @Query

>> Projections and Excerpts in Spring Data REST

>> Apache Ignite with Spring Data

>> Obtaining Auto-generated Keys in Spring JDBC

>> Show Hibernate/JPA SQL Statements from Spring Boot

>> Spring Data with Spring Security

>> Introduction to Jinq with Spring

>> Programmatic Transactions in the Spring TestContext Framework

>> Bootstrapping Hibernate 5 with Spring

>> Spring Data Java 8 Support

>> A Guide to EclipseLink with Spring

>> Quick Guide on Loading Initial Data with Spring Boot

>> A Guide to Spring AbstractRoutingDatasource

>> Spring Data JPA – Adding a Method in All Repositories

>> CrudRepository, JpaRepository, and PagingAndSortingRepository in Spring Data

>> Guide to Spring Data LDAP

>> Vavr Support in Spring Data

>> Configuring Separate Spring DataSource for Tests

>> A Guide to GemFire with Spring Data

>> Self-Contained Testing Using an In-Memory Database

>> AngularJS CRUD Application with Spring Data REST

>> Working with Relationships in Spring Data REST

>> Spring Data MongoDB: Projections and Aggregations

>> Introduction to Spring Data Solr

>> DynamoDB in a Spring Boot Application Using Spring Data

>> Guide to Spring Data REST Validators

>> Spring, Hibernate and a JNDI Datasource

>> Guide To Running Logic on Startup in Spring

>> Using Couchbase in a Spring Application

>> Introduction to Spring Data Neo4j

>> Spring Boot Support for jOOQ

>> Multiple Buckets and Spatial View Queries in Spring Data Couchbase

>> Entity Validation, Optimistic Locking, and Query Consistency in Spring Data Couchbase

>> Introduction to Jooq with Spring

>> Elasticsearch Queries with Spring Data

>> PubSub Messaging with Spring Data Redis

>> Introduction to Spring Data REST

>> Intro to Spring Data Couchbase

>> All Spring Data Guides

>> Introduction to Spring Data Elasticsearch

>> Introduction to Spring Data Redis

>> Auditing with JPA, Hibernate, and Spring Data JPA

>> Using the CassandraTemplate from Spring Data

>> Simplify the DAO with Spring and Java Generics

>> Introduction to Spring Data Cassandra

>> Spring Data MongoDB Tutorial

>> GridFS in Spring Data MongoDB

>> A Spring Custom Annotation for a Better DAO

>> Custom Cascading in Spring Data MongoDB

>> Spring Data MongoDB – Indexes, Annotations and Converters

>> A Guide to Queries in Spring Data MongoDB

>> Externalize Setup Data via CSV in a Spring Application

>> Introduction to Spring Data MongoDB

>> Spring JPA – Multiple Databases

>> REST Query Language with Spring Data JPA and Querydsl

>> REST Query Language with Spring Data JPA Specifications

>> Spring JDBC

>> Transactions with Spring and JPA

>> Introduction to Spring Data JPA

>> A Guide to JPA with Spring

>> The DAO with JPA and Spring

>> Spring DataIntegrityViolationException

>> Hibernate 3 with Spring

>> The DAO with Spring and Hibernate

  • ↑ Back to Top
res – REST with Spring (eBook) (everywhere)
opt-in
Building a REST API with Spring 5?
Download the E-book
The Baeldung logo

Courses

  • All Courses
  • All Bulk Courses
  • All Bulk Team Courses
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Jackson JSON Tutorial
  • Apache HttpClient Tutorial
  • REST with Spring Tutorial
  • Spring Persistence Tutorial
  • Security with Spring
  • Spring Reactive Tutorials

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Jobs
  • Our Partners
  • Partner with Baeldung
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo