You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
282.**[Using Java records as Hibernate embeddable](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootRecordAndEmbeddables)**
4137
+
4138
+
**Description:** This application is an example of using Java records as embeddable. This is available starting with Hibernate 6.0, but it was refined to be more accessible and easy to use in Hibernate 6.2
4139
+
4140
+
**Key points:**
4141
+
- add Hibernate 6.2 (this is not default in Spring Boot 3.0.2 used here)
4142
+
- define a record (`Contact`)
4143
+
- add this record in an entity (`Author`) via `@Embedded`
4144
+
- fetch data into a DTO represented by another record (`AuthorDto`)
0 commit comments