Branch: refs/heads/7.4
Home:
https://github.com/hibernate/hibernate-orm
Commit: 7d51837c04acd20d646dd08314fd7a44be80b006
https://github.com/hibernate/hibernate-orm/commit/7d51837c04acd20d646dd08...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M
hibernate-core/src/test/java/org/hibernate/orm/test/stateless/StatelessSessionMultipleOpsTest.java
A
tooling/metamodel-generator/src/dataIntegrationTest/java/org/hibernate/processor/test/integ/repository/AuthorRepository.java
A
tooling/metamodel-generator/src/dataIntegrationTest/java/org/hibernate/processor/test/integ/test/AuthorRepositoryTest.java
A
tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/hhh20509/Item.java
A
tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/hhh20509/ItemRepository.java
A
tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/hhh20509/ReactiveItemRepository.java
A
tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/hhh20509/SaveAllGeneratedIdTest.java
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/LifecycleMethod.java
Log Message:
-----------
HHH-20509 Fix saveAll code generation for entities with @GeneratedValue
When @Save is used with a List/Array parameter and the entity has
@GeneratedValue, the processor now generates a per-entity loop that
checks each entity's identifier individually, routing to insert()
for null ids and upsert() for assigned ids. Previously the generated
code called getIdentifier() on the List object itself, causing
UnknownEntityTypeException at runtime.
Assisted-By: Claude Code <noreply(a)anthropic.com>
Commit: facc4a156f54a19a4694bcd59751743a20385be7
https://github.com/hibernate/hibernate-orm/commit/facc4a156f54a19a4694bcd...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
R
tooling/metamodel-generator/src/dataIntegrationTest/java/org/hibernate/processor/test/integ/repository/AuthorRepository.java
R
tooling/metamodel-generator/src/dataIntegrationTest/java/org/hibernate/processor/test/integ/test/AuthorRepositoryTest.java
M
tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/hhh20509/SaveAllGeneratedIdTest.java
Log Message:
-----------
HHH-20509 Add saveAll tests for existing and mixed entities
Address PR review: test saveAll with entities that already have IDs
(upsert path) and with a mix of new and existing entities in the
same list (exercises the per-entity insert/upsert conditional).
Assisted-By: Claude Code <noreply(a)anthropic.com>
Compare:
https://github.com/hibernate/hibernate-orm/compare/1e1d4ca9f74b...facc4a1...
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications