Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 5d86d88c0303ec102099085e35c9bd37b039cf51
https://github.com/hibernate/hibernate-orm/commit/5d86d88c0303ec102099085...
Author: Gavin <gavin(a)hibernate.org>
Date: 2023-01-10 (Tue, 10 Jan 2023)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/action/internal/AbstractEntityInsertAction.java
M hibernate-core/src/main/java/org/hibernate/action/internal/EntityDeleteAction.java
M hibernate-core/src/main/java/org/hibernate/action/internal/EntityUpdateAction.java
M hibernate-core/src/main/java/org/hibernate/cache/internal/NaturalIdCacheKey.java
M hibernate-core/src/main/java/org/hibernate/engine/internal/AbstractEntityEntry.java
M
hibernate-core/src/main/java/org/hibernate/engine/internal/ImmutableEntityEntry.java
M hibernate-core/src/main/java/org/hibernate/engine/internal/MutableEntityEntry.java
M
hibernate-core/src/main/java/org/hibernate/engine/internal/NaturalIdResolutionsImpl.java
M
hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/EntityEntry.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/NaturalIdResolutions.java
M
hibernate-core/src/main/java/org/hibernate/event/internal/DefaultEvictEventListener.java
M
hibernate-core/src/main/java/org/hibernate/event/internal/DefaultLoadEventListener.java
M
hibernate-core/src/main/java/org/hibernate/loader/ast/internal/AbstractNaturalIdLoader.java
M
hibernate-core/src/main/java/org/hibernate/loader/ast/internal/MultiNaturalIdLoaderStandard.java
M
hibernate-core/src/main/java/org/hibernate/loader/internal/NaturalIdLoadAccessImpl.java
M
hibernate-core/src/main/java/org/hibernate/loader/internal/SimpleNaturalIdLoadAccessImpl.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/NaturalIdMapping.java
M
hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/CompoundNaturalIdMapping.java
M
hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/SimpleNaturalIdMapping.java
M
hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/EntityPersister.java
M
hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/AbstractEntityInitializer.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/caching/mocked/NaturalIdCacheKeyTest.java
Log Message:
-----------
HHH-16010 fix two bugs in natural id handling found just by inspection of code
- fix place where id and entity had always been passed in reversed order
- fix place where whole state array was passes instead of natural id array
- change the API of NaturalIdResolutions because it never needs the session,
and the fix involved calling it from a place we did not have one
- and also clean up a bunch of warnings
- improve some visually-ugly code in AbstractEntityEntry