[hibernate/hibernate-orm] f3e31f: remove ancient limitation that allowed only one pr...
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: f3e31fe427c28958497eff46a0257b18016d59f4
https://github.com/hibernate/hibernate-orm/commit/f3e31fe427c28958497eff4...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-21 (Wed, 21 Dec 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/generator/InDatabaseGenerator.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/CurrentTimestampGeneration.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/NaturalIdHelper.java
M hibernate-core/src/main/java/org/hibernate/id/PostInsertIdentityPersister.java
M hibernate-core/src/main/java/org/hibernate/id/SelectGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/insert/UniqueKeySelectingDelegate.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
Log Message:
-----------
remove ancient limitation that allowed only one property as UK for 'select' id generator
Commit: 64d0cf804ac949daebfb62630bcad6f78580c1a2
https://github.com/hibernate/hibernate-orm/commit/64d0cf804ac949daebfb626...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-21 (Wed, 21 Dec 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/annotations/IdGeneratorType.java
M hibernate-core/src/main/java/org/hibernate/annotations/ValueGenerationType.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/PropertyBinder.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/temptable/TemporaryTable.java
M hibernate-core/src/main/java/org/hibernate/event/internal/AbstractSaveEventListener.java
M hibernate-core/src/main/java/org/hibernate/generator/AnnotationBasedGenerator.java
A hibernate-core/src/main/java/org/hibernate/generator/BeforeExecutionGenerator.java
M hibernate-core/src/main/java/org/hibernate/generator/Generator.java
R hibernate-core/src/main/java/org/hibernate/generator/InDatabaseGenerator.java
R hibernate-core/src/main/java/org/hibernate/generator/InMemoryGenerator.java
A hibernate-core/src/main/java/org/hibernate/generator/OnExecutionGenerator.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/CurrentTimestampGeneration.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/GeneratedAlwaysGeneration.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/GeneratedGeneration.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/SourceGeneration.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/TenantIdGeneration.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/VersionGeneration.java
M hibernate-core/src/main/java/org/hibernate/id/IdentifierGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/IdentityGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/PostInsertIdentifierGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/SelectGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/insert/BasicSelectingDelegate.java
M hibernate-core/src/main/java/org/hibernate/id/insert/GetGeneratedKeysDelegate.java
M hibernate-core/src/main/java/org/hibernate/id/insert/InsertGeneratedIdentifierDelegate.java
M hibernate-core/src/main/java/org/hibernate/id/insert/InsertReturningDelegate.java
M hibernate-core/src/main/java/org/hibernate/id/insert/InsertSelectIdentityInsert.java
M hibernate-core/src/main/java/org/hibernate/id/uuid/UuidGenerator.java
M hibernate-core/src/main/java/org/hibernate/internal/StatelessSessionImpl.java
M hibernate-core/src/main/java/org/hibernate/mapping/Component.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/GeneratedValueResolver.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/InMemoryGeneratedValueResolver.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/GeneratedValuesProcessor.java
M hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/collection/CollectionPersister.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/persister/entity/mutation/AbstractMutationCoordinator.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/InsertCoordinator.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/UpdateCoordinatorStandard.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/cte/CteInsertHandler.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/temptable/InsertExecutionDelegate.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
M hibernate-core/src/main/java/org/hibernate/sql/Insert.java
M hibernate-core/src/main/java/org/hibernate/tuple/IdentifierProperty.java
M hibernate-core/src/main/java/org/hibernate/tuple/ValueGeneration.java
M hibernate-core/src/main/java/org/hibernate/tuple/VmValueGeneration.java
M hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/temporals/GeneratedUuidTests.java
Log Message:
-----------
rename Generator subtypes to BeforeExecuteGenerator and OnExecuteGenerator
- and update javadocs
- add/improve doc of new Dialect methods
- add some missing @Override annotations
Compare: https://github.com/hibernate/hibernate-orm/compare/d30bf092aab5...64d0cf8...
2 years
[hibernate/hibernate-orm] 5089df: HHH-15912 adaptively choose the DDL type for ORDIN...
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 5089df203676657f51603d387fb55a65a916ac54
https://github.com/hibernate/hibernate-orm/commit/5089df203676657f51603d3...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-20 (Tue, 20 Dec 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/InferredBasicValueResolver.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/EnumJavaType.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/enumerated/EnumeratedSmokeTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/bootstrap/binding/annotations/basics/EnumResolutionTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/SmokeTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/ast/SmokeTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/type/EnumArrayTest.java
Log Message:
-----------
HHH-15912 adaptively choose the DDL type for ORDINAL enums based on the number of members
this amounts to a reversion of HHH-15288 for 99.99% of enums
Commit: 72c2559d399ad5ac44bc08556d902c9812a59a04
https://github.com/hibernate/hibernate-orm/commit/72c2559d399ad5ac44bc085...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-20 (Tue, 20 Dec 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/model/FunctionContributor.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/ArrayJdbcType.java
Log Message:
-----------
clean up obsolete imports and warning suppressions
Commit: d30bf092aab519a31340573d2b71f968d308685d
https://github.com/hibernate/hibernate-orm/commit/d30bf092aab519a31340573...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2022-12-20 (Tue, 20 Dec 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/EnumJavaType.java
Log Message:
-----------
Apply suggestions from code review
Co-authored-by: Steve Ebersole <steve(a)hibernate.org>
Compare: https://github.com/hibernate/hibernate-orm/compare/7007bafe55db...d30bf09...
2 years
[hibernate/hibernate-orm] 7007ba: HHH-15872 Add ColumnOrderingStrategy SPI and handl...
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 7007bafe55db28fe318b30d219a2328a3e614822
https://github.com/hibernate/hibernate-orm/commit/7007bafe55db28fe318b30d...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-12-20 (Tue, 20 Dec 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/mapping/embeddable/NestedStructEmbeddableTest.java
M documentation/src/test/java/org/hibernate/userguide/mapping/embeddable/StructEmbeddableTest.java
A hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/PostgresPlusLegacyDialect.java
M hibernate-core/hibernate-core.gradle
M hibernate-core/src/main/java/org/hibernate/boot/MetadataBuilder.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/InFlightMetadataCollectorImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataImpl.java
A hibernate-core/src/main/java/org/hibernate/boot/model/relational/ColumnOrderingStrategy.java
A hibernate-core/src/main/java/org/hibernate/boot/model/relational/ColumnOrderingStrategyLegacy.java
A hibernate-core/src/main/java/org/hibernate/boot/model/relational/ColumnOrderingStrategyStandard.java
M hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorBuilder.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/AbstractDelegatingMetadata.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/AbstractDelegatingMetadataBuilderImplementor.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/AbstractDelegatingMetadataBuildingOptions.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/MetadataBuildingOptions.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/MetadataImplementor.java
M hibernate-core/src/main/java/org/hibernate/cfg/AggregateComponentSecondPass.java
M hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
M hibernate-core/src/main/java/org/hibernate/dialect/DB2StructJdbcType.java
M hibernate-core/src/main/java/org/hibernate/dialect/OracleJsonJdbcType.java
M hibernate-core/src/main/java/org/hibernate/dialect/OracleStructJdbcType.java
M hibernate-core/src/main/java/org/hibernate/dialect/OracleXmlJdbcType.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLJsonJdbcType.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLJsonbJdbcType.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLStructJdbcType.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgresPlusDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/temptable/StandardTemporaryTableExporter.java
M hibernate-core/src/main/java/org/hibernate/dialect/temptable/TemporaryTable.java
M hibernate-core/src/main/java/org/hibernate/dialect/temptable/TemporaryTableColumn.java
M hibernate-core/src/main/java/org/hibernate/dialect/temptable/TemporaryTableSessionUidColumn.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
M hibernate-core/src/main/java/org/hibernate/mapping/DenormalizedTable.java
M hibernate-core/src/main/java/org/hibernate/mapping/PrimaryKey.java
M hibernate-core/src/main/java/org/hibernate/mapping/Table.java
M hibernate-core/src/main/java/org/hibernate/mapping/UserDefinedType.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/EmbeddableInstantiatorRecordStandard.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddedAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/UnionSubclassEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/AggregateJdbcType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JsonJdbcType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/OracleJsonBlobJdbcType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/XmlAsStringJdbcType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/XmlJdbcType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/spi/JdbcTypeRegistry.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/enumerated/EnumeratedSmokeTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/JoinColumnOverrideTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/sequences/JoinColumnOverrideTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/bootstrap/binding/annotations/override/InheritedAttributeOverridingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/foreignkeys/disabled/DisabledForeignKeyTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/enhanced/SequenceNamingStrategyTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/enhanced/TableNamingStrategyTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/sequence/SequenceExportTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/uuid/GeneratedValueTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/converted/converter/AndNationalizedTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/converted/converter/elementCollection/CollectionCompositeElementExplicitConversionTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/naturalid/composite/CompositeNaturalIdMappingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/naturalid/compound/CompoundNaturalIdMappingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/namingstrategy/ejb3joincolumn/Tests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/quote/ColumnDefinitionQuotingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schematools/TestExtraPhysicalTableTypes.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/AlterTableQuoteDefaultSchemaTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/AlterTableQuoteSpecifiedSchemaTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/CommentGenerationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/ConnectionsReleaseTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/HANASchemaMigrationTargetScriptCreationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/QuotedTableNameSchemaUpdateTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/QuotedTableNameWithForeignKeysSchemaUpdateTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaCreationToOutputScriptTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaDropTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaDropToOutputScriptTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaExportTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaMigrationTargetScriptCreationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaMigrationToOutputScriptTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateDelimiterTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateFormatterTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateGeneratingOnlyScriptFileTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateJoinColumnNoConstraintSecondaryTableTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateJoinColumnNoConstraintSecondaryTablesTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateJoinColumnNoConstraintTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateSQLServerTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateWithUseJdbcMetadataDefaultsSettingToFalseAndQuotedNameTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateWithUseJdbcMetadataDefaultsSettingToFalseTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateWithViewsTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SequenceReadingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SpannerSchemaCreationColumnTypesTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SqlServerQuoteSchemaTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/derivedid/ColumnLengthTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/foreignkeys/ForeignKeyDropTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/foreignkeys/ForeignKeyGenerationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/foreignkeys/ForeignKeyMigrationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/foreignkeys/JoinedInheritanceForeignKeyTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/foreignkeys/SchemaUpdateWithKeywordAutoQuotingEnabledTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/foreignkeys/crossschema/CrossSchemaForeignKeyGenerationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/foreignkeys/definition/AbstractForeignKeyDefinitionTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/idbag/IdBagSequenceTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/idgenerator/SequenceGenerationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/idgenerator/SequenceGeneratorIncrementTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/idgenerator/SequenceGeneratorsTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/idgenerator/TableGeneratorTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/idgenerator/TableGeneratorsTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/inheritance/ForeignKeyNameTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/inheritance/hhh_x/InheritanceSchemaUpdateTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/inheritance/tableperclass/SchemaCreationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/manytomany/ForeignKeyNameTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/uniqueconstraint/UniqueConstraintDropTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/uniqueconstraint/UniqueConstraintGenerationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemavalidation/EnumValidationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemavalidation/InstantValidationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemavalidation/JoinTableWithDefaultSchemaTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemavalidation/LongVarcharValidationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemavalidation/NumericValidationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/tool/schema/IndividuallySchemaValidatorImplConnectionTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/tool/schema/IndividuallySchemaValidatorImplTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/type/OracleLongLobTypeTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/type/SQLServerNVarCharTypeTest.java
A hibernate-core/src/test/java17/org/hibernate/orm/test/records/RecordStructEmbeddableTest.java
M hibernate-envers/src/test/java/org/hibernate/orm/test/envers/entities/converter/BasicModelingTest.java
M tooling/hibernate-ant/src/main/java/org/hibernate/tool/hbm2ddl/SchemaExportTask.java
Log Message:
-----------
HHH-15872 Add ColumnOrderingStrategy SPI and handle record structs specially
2 years