Branch: refs/heads/8.0
Home:
https://github.com/hibernate/hibernate-orm
Commit: 30353b5ce858f218b8ec2bf47d0a0f897390c3db
https://github.com/hibernate/hibernate-orm/commit/30353b5ce858f218b8ec2bf...
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: 07ef0af15e58b4b4242d776e05f9a77fc60ae07f
https://github.com/hibernate/hibernate-orm/commit/07ef0af15e58b4b4242d776...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M
tooling/metamodel-generator/src/dataIntegrationTest/java/org/hibernate/processor/test/integ/test/AuthorRepositoryTest.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/dc6159a867db...07ef0af...
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications