Skip to content

Commit 4acdce3

Browse files
authoredFeb 14, 2023
Update README.md
1 parent a484446 commit 4acdce3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎README.md

+12
Original file line numberDiff line numberDiff line change
@@ -4130,3 +4130,15 @@ From Openjdk JEP359:
41304130
**Key points:**
41314131
- for Maven, in `pom.xml`, add the `datasource-proxy-spring-boot-starter` starter
41324132
- in `application.properties` enable `DEBUG` level for logging
4133+
4134+
-----------------------------------------------------------------------------------------------------------------------
4135+
4136+
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

Comments
 (0)
Failed to load comments.