[hibernate/hibernate-orm] 8ee094: simplify Generator instantiation lifecycle
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 8ee09481b3297de78132c68072b5a847ffecb3cb
https://github.com/hibernate/hibernate-orm/commit/8ee09481b3297de78132c68...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-19 (Thu, 19 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/internal/InFlightMetadataCollectorImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/GeneratorAnnotationHelper.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/GeneratorBinder.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/IdBagIdGeneratorResolverSecondPass.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/IdGeneratorResolverSecondPass.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/StrictIdGeneratorResolverSecondPass.java
M hibernate-core/src/main/java/org/hibernate/boot/model/relational/Namespace.java
M hibernate-core/src/main/java/org/hibernate/generator/GeneratorCreationContext.java
M hibernate-core/src/main/java/org/hibernate/id/enhanced/SequenceStyleGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/enhanced/TableGenerator.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
M hibernate-core/src/main/java/org/hibernate/mapping/Component.java
A hibernate-core/src/main/java/org/hibernate/mapping/GeneratorSettings.java
M hibernate-core/src/main/java/org/hibernate/mapping/KeyValue.java
M hibernate-core/src/main/java/org/hibernate/mapping/Property.java
M hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java
M hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/generators/UnnamedGeneratorTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/idgen/enhanced/auto/AutoGenerationTypeTests.java
Log Message:
-----------
simplify Generator instantiation lifecycle
remove a bunch of unused parameters from methods in this package
Commit: 18aa8a7c702ead85f9ea0a9faebe8c3869784095
https://github.com/hibernate/hibernate-orm/commit/18aa8a7c702ead85f9ea0a9...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-19 (Thu, 19 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/internal/InFlightMetadataCollectorImpl.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
M hibernate-core/src/main/java/org/hibernate/mapping/Component.java
M hibernate-core/src/main/java/org/hibernate/mapping/KeyValue.java
M hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java
M hibernate-core/src/main/java/org/hibernate/metamodel/spi/RuntimeModelCreationContext.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java
M hibernate-core/src/test/java/org/hibernate/orm/test/LocalTemporaryTableMutationStrategyNoDropTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/generators/UnnamedGeneratorTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/PooledHiLoSequenceIdentifierTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/custom/CustomSequenceGenerator.java
Log Message:
-----------
don't cache the Generator in the SimpleValue
that way we don't need to re-call initialize()
on the cached instance
also handle canonicalization of generators via
RuntimeModelCreationContext instead of via
deprecated method or SessionFactoryImplementor
Commit: e7776049af92dae3ebf7c4d6c5138c45c3a80c0c
https://github.com/hibernate/hibernate-orm/commit/e7776049af92dae3ebf7c4d...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-19 (Thu, 19 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/internal/InFlightMetadataCollectorImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/SessionFactoryOptions.java
M hibernate-core/src/main/java/org/hibernate/generator/GeneratorCreationContext.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
M hibernate-core/src/main/java/org/hibernate/mapping/GeneratorSettings.java
M hibernate-core/src/main/java/org/hibernate/mapping/KeyValue.java
M hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java
M hibernate-core/src/main/java/org/hibernate/metamodel/spi/RuntimeModelCreationContext.java
M hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java
M hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java
M hibernate-core/src/test/java/org/hibernate/orm/test/LocalTemporaryTableMutationStrategyNoDropTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/generators/UnnamedGeneratorTests.java
Log Message:
-----------
more fallout from new Generator instantiation lifecycle
Commit: 1863fc75c47a7ee126035bf5039844ffffe1030d
https://github.com/hibernate/hibernate-orm/commit/1863fc75c47a7ee126035bf...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2024-09-19 (Thu, 19 Sep 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/id/Configurable.java
Log Message:
-----------
remove rogue ;
Compare: https://github.com/hibernate/hibernate-orm/compare/df16ea9694fa...1863fc7...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
2 months, 2 weeks