Description

Hi everybody, I am encountering an issue when saving an entity with an embedded id using Spring Boot 3.2.4. The issue does not occur when using Spring Boot 3.1.1. An exception is thrown with the message:

Caused by: org.springframework.orm.jpa.JpaSystemException: Null id generated for entity ABC 
 [...]
Caused by: org.hibernate.id.IdentifierGenerationException: Null id generated for entity ABC
 [...]

I have searched the existing issues and I could not find a similar one.

Additional Information

I have tried upgrading JPA and Hibernate Core to the latest versions, but the issue persists. I have also tried cleaning and rebuilding the project, but the issue persists.

Thank you in advance!

Comment From: wilkinsona

Spring Boot isn't really involved with id generation. I think this is most likely to be a Hibernate problem. Either due to some changes that you need to make in your app for compatibility with the latest version of Hibernate or due to a bug in your app. If you'd like some help narrowing down the possible causes, I would recommend asking a question on Stack Overflow that includes a minimal reproducible example.