Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 86473f109c917594561bcfa41a4c91704327caa3
https://github.com/hibernate/hibernate-orm/commit/86473f109c917594561bcfa...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-06 (Mon, 06 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: a1e5c44fdc4fe639cc16a961b428f8b8c1d92f62
https://github.com/hibernate/hibernate-orm/commit/a1e5c44fdc4fe639cc16a96...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-06 (Mon, 06 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>
Commit: e534f48a27831b81a584617a12493621ff768ce7
https://github.com/hibernate/hibernate-orm/commit/e534f48a27831b81a584617...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-06 (Mon, 06 Jul 2026)
Changed paths:
M
tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/LifecycleMethod.java
Log Message:
-----------
HHH-20509 Extract insert/upsert conditional into shared methods
Address PR review: eliminate duplication between single-entity and
multi-entity generated-id upsert code paths by extracting the
insert/upsert conditional into upsertOrInsertByGeneratedId() for
blocking and upsertOrInsertByGeneratedIdReactively() for reactive.
Assisted-By: Claude Code <noreply(a)anthropic.com>
Compare:
https://github.com/hibernate/hibernate-orm/compare/1a00c441df5c...e534f48...
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications