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

      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 6

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 6

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Java Courses ▼▲
    • Learn Junit

      Master the most popular Java testing framework.

  • Guides ▼▲
    • Spring Boot

      Get started and go deep into Spring Boot 3

    • 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

JPA

The Java Persistence API (JPA) provides the ORM layer for managing relational data in Java. Learn how to use JPA in your code through the guides below.

  • Hibernate (27)
  • JPA Annotations (20)
  • Spring Data JPA (19)
  • JPA Entities (19)
  • JPA Basics (16)
  • SQL (13)
  • Entity Relationships (9)
  • Exception (8)
  • PostgreSQL (6)
  • JPQL (5)
  • Entity ID (5)
  • Querydsl (3)
  • EntityManager (3)
  • Transactions (3)

>> Connect Java Spring Boot to Db2 Database

>> How Hibernate Dirty Checking Mechanism Works

>> Dynamic Spring Data JPA Repository Query With Arbitrary AND Clauses

>> Hibernate Envers – Extending Revision Info with Custom Fields

>> Persisting UUIDs in PostgreSQL using JPA

>> Introduction to Jakarta Persistence 3.2

>> EntityManagerFactory vs. SessionFactory

>> Troubleshooting Spring JPA Attribute Naming Issues

>> Query JPA Repository With Single Table Inheritance Subtypes

>> @MapsId Annotation in Hibernate

>> How to Clone a JPA Entity

>> How to Make a Field Optional in JPA Entity?

>> Difference Between CAST and TREAT in JPA

>> ON CONFLICT Clause for Hibernate Insert Queries

>> How to Fix Hibernate UnknownEntityException: Could not resolve root entity

>> Resolving PostgreSQL JSON Type Mismatch Errors in JPA

>> How to Fix PSQLException: Operator Does Not Exist: Character Varying = UUID

>> Java Enums, JPA and PostgreSQL Enums

>> Fixing the “Could Not Determine Recommended JdbcType for Class” Error in JPA

>> Find Distinct Rows Using Spring Data JPA

  • ↑ Back to Top
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next →
Course – LSSO – NPI EA (tag = OAuth)
LSSO Course Banner
Course – Spring Sale 2025 – NPI EA (cat = Baeldung)
all courses spring sale 2025
Course – Spring Sale 2025 – NPI (All)
all courses spring sale 2025
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Learn Spring Boot Series
  • Spring Tutorial
  • Get Started with Java
  • Security with Spring
  • REST with Spring Series
  • All About String in Java

About

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