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.

Persistence

The persistence layer is vital to almost any application. Have a look at different ways to implement persistence in Java.

  • JPA (93)
  • Hibernate (82)
  • MongoDB (41)
  • SQL (40)
  • JDBC (27)
  • Cassandra (23)
  • Redis (11)
  • Elasticsearch (10)
  • Transactions (9)
  • Couchbase (9)

>> MongoDB Composite Key With Spring Data

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

>> Tomcat Warning “To Prevent a Memory Leak, the JDBC Driver Has Been Forcibly Unregistered”

>> Using Transactions for Read-Only Operations

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

>> Joining Tables With Spring Data JPA Specifications

>> Converting a JDBC ResultSet to JSON in Java

>> JPA and Hibernate – Criteria vs. JPQL vs. HQL Query

>> Checking Connection to MongoDB

>> Hibernate’s “Not-Null Property References a Null or Transient Value” Error

>> Liquibase vs Flyway

>> Distinct Queries in HQL

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

>> BootstrapMode for JPA Repositories

>> A Guide to JPA Buddy

>> Retrieve a Value from MongoDB by Its Key Name

>> Bulk Update of Documents in MongoDB

>> Guide to Upsert in MongoDB

>> Logging MongoDB Queries with Spring Boot

>> Import Data to MongoDB From JSON File Using Java

  • ← Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • Next →
  • »
Persistence sidebar banner
opt-in
Learn how to do Persistence with Spring!
Download the E-book
The Baeldung logo

Courses

  • All Courses
  • All Bulk 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