---
title: "Guide to @EmbeddedTable in Hibernate"
url: https://daily.dev/posts/guide-to-embeddedtable-in-hibernate-mnfa0ujfy
source_url: https://feeds.feedblitz.com/~/958532831/0/baeldung
type: article
source: "Baeldung"
published: 2026-06-27T18:51:23.496Z
updated: 2026-06-27T18:54:27.257Z
tags: ["java"]
reading_time: 3
upvotes: 3
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Guide to @EmbeddedTable in Hibernate

**[Baeldung](https://daily.dev/sources/baeldung)** · 3 min read · 3 upvotes · 1 comments

## Summary

Hibernate 7.2 introduces the @EmbeddedTable annotation, which simplifies mapping embeddable objects to secondary database tables. Previously, developers had to use @SecondaryTable combined with @AttributeOverride for every individual field, which was verbose and error-prone. With @EmbeddedTable, a single annotation on the embedded field automatically maps all its columns to the specified secondary table. The post covers the motivation, a practical usage example with a test case, and key limitations: it is Hibernate-specific (not part of the Jakarta Persistence spec), marked @Incubating (API may change), and does not yet support nested embedded objects.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://feeds.feedblitz.com/~/958532831/0/baeldung>

## Community discussion

Top comments from developers on daily.dev.

**@henrybrown** · 0 upvotes

> This is a much cleaner and far less error prone approach to handling a top-level embedded object. In practice, the fact that it is Hibernate specific, rather than a JPA specification feature is not really a big limitation since one rarely changes providers inside a project.

## Similar posts on daily.dev

- [PartitionKey in Hibernate: A Practical Guide for Spring Boot](https://daily.dev/posts/partitionkey-in-hibernate-a-practical-guide-for-spring-boot-pmwx9veuf) · Baeldung · 11 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java)

[View this post on daily.dev](https://daily.dev/posts/guide-to-embeddedtable-in-hibernate-mnfa0ujfy)
