[hibernate/hibernate-orm] 964e72: Implement support for TimeZoneStorageType.COLUMN
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 964e72f536aedf3bf9b998b27376b9b586b77743
https://github.com/hibernate/hibernate-orm/commit/964e72f536aedf3bf9b998b...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/appendices/Configurations.adoc
M documentation/src/main/asciidoc/userguide/chapters/domain/basic_types.adoc
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/InstantMappingTests.java
A documentation/src/test/java/org/hibernate/userguide/mapping/basic/TimeZoneStorageMappingTests.java
M hibernate-core/src/main/java/org/hibernate/TimeZoneStorageStrategy.java
A hibernate-core/src/main/java/org/hibernate/annotations/TimeZoneColumn.java
M hibernate-core/src/main/java/org/hibernate/annotations/TimeZoneStorage.java
M hibernate-core/src/main/java/org/hibernate/annotations/TimeZoneStorageType.java
R hibernate-core/src/main/java/org/hibernate/annotations/TimeZoneType.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/VersionResolution.java
M hibernate-core/src/main/java/org/hibernate/cfg/AbstractPropertyHolder.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/BasicValueBinder.java
M hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/HSQLSqlAstTranslator.java
M hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLIntervalSecondJdbcType.java
M hibernate-core/src/main/java/org/hibernate/dialect/Replacer.java
M hibernate-core/src/main/java/org/hibernate/dialect/SQLServerDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SpannerDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/CommonFunctionFactory.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/DB2FormatEmulation.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/ExtractFunction.java
A hibernate-core/src/main/java/org/hibernate/dialect/function/FormatFunction.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/SQLServerFormatEmulation.java
M hibernate-core/src/main/java/org/hibernate/internal/util/StringHelper.java
M hibernate-core/src/main/java/org/hibernate/mapping/BasicValue.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/function/MultipatternSqmFunctionDescriptor.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/internal/EmbeddableValuedPathInterpretation.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmExpressionHelper.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/AbstractSqlAstTranslator.java
A hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/SyntheticVirtualTableGroup.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DurationJavaType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/InstantJavaType.java
A hibernate-core/src/main/java/org/hibernate/usertype/internal/AbstractTimeZoneStorageCompositeUserType.java
A hibernate-core/src/main/java/org/hibernate/usertype/internal/OffsetDateTimeCompositeUserType.java
A hibernate-core/src/main/java/org/hibernate/usertype/internal/ZonedDateTimeCompositeUserType.java
Log Message:
-----------
Implement support for TimeZoneStorageType.COLUMN
Commit: af9edd50d6d683b64878e6f9393a094307eee4bf
https://github.com/hibernate/hibernate-orm/commit/af9edd50d6d683b64878e6f...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/InstantMappingTests.java
M hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/Replacer.java
M hibernate-core/src/main/java/org/hibernate/dialect/SpannerDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/DB2FormatEmulation.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/FormatFunction.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/Format.java
M hibernate-core/src/main/java/org/hibernate/type/SqlTypes.java
M hibernate-core/src/main/java/org/hibernate/type/StandardBasicTypes.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/InstantJavaType.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/InstantAsTimestampJdbcType.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/InstantAsTimestampWithTimeZoneJdbcType.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/InstantJdbcType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JdbcTypeJavaClassMappings.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/spi/DdlTypeRegistry.java
M hibernate-core/src/main/java/org/hibernate/type/spi/TypeConfiguration.java
M hibernate-core/src/test/java/org/hibernate/orm/test/type/InstantTest.java
Log Message:
-----------
Add SqlTypes.TIMESTAMP_UTC to as jdbc type for java.time.Instant
Compare: https://github.com/hibernate/hibernate-orm/compare/fa750a9c26e2...af9edd5...
2 years, 10 months
[hibernate/hibernate-orm] 2c8025: Replace typeNames in Dialect with SqlType and SqlT...
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 2c80250b0e0c13fea874458bd0e59f14d1493e25
https://github.com/hibernate/hibernate-orm/commit/2c80250b0e0c13fea874458...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/sql/CollectionLoaderTest.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/CUBRIDDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/CacheDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/FirebirdDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/InformixDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/IngresDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MaxDBDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MimerSQLDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/RDMSOS2200Dialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SQLiteDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SybaseAnywhereDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/TeradataDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/TimesTenDialect.java
A hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/sequence/IngresLegacySequenceSupport.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/model/TypeContributions.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
M hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/AbstractTransactSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DB2iDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DB2zDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/HANAColumnStoreDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/OracleDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SQLServerDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SpannerDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SybaseASEDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SybaseDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/TiDBDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/CastingConcatFunction.java
M hibernate-core/src/main/java/org/hibernate/dialect/temptable/TemporaryTable.java
M hibernate-core/src/main/java/org/hibernate/id/ExportableColumn.java
M hibernate-core/src/main/java/org/hibernate/id/enhanced/TableGenerator.java
M hibernate-core/src/main/java/org/hibernate/internal/FilterHelper.java
M hibernate-core/src/main/java/org/hibernate/mapping/Column.java
M hibernate-core/src/main/java/org/hibernate/mapping/Formula.java
M hibernate-core/src/main/java/org/hibernate/mapping/Selectable.java
M hibernate-core/src/main/java/org/hibernate/mapping/Table.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractEmbeddableMapping.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/EntityCollectionPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/MappingModelCreationHelper.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/SelectableMappingImpl.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/SelectableMappingsImpl.java
M hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/SingleTableEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/UnionSubclassEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/function/SelfRenderingFunctionSqlAstExpression.java
M hibernate-core/src/main/java/org/hibernate/sql/Template.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/AbstractSqlAstTranslator.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/internal/AbstractSchemaValidator.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/internal/StandardTableExporter.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JdbcType.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/DdlType.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/internal/BinaryFloatDdlType.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/internal/CapacityDependentDdlType.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/internal/DdlTypeImpl.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/internal/Scale6IntervalSecondDdlType.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/spi/DdlTypeRegistry.java
M hibernate-core/src/main/java/org/hibernate/type/spi/TypeConfiguration.java
M hibernate-core/src/test/java/org/hibernate/orm/test/dialect/DB2DialectTestCase.java
M hibernate-core/src/test/java/org/hibernate/orm/test/dialect/DB2zDialectInitTestCase.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/enhanced/SequenceStyleConfigUnitTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jdbc/env/DefaultSchemaNameResolverTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/literal/AbstractCriteriaLiteralHandlingModeTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/type/AbstractJavaTimeTypeTest.java
M hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/manytomany/sametable/BasicSametable.java
M hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/strategy/ValidityAuditStrategyRevEndTestCustomRevEnt.java
M hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/strategy/ValidityAuditStrategyRevEndTsTest.java
M hibernate-testing/src/main/java/org/hibernate/testing/junit4/CustomRunner.java
Log Message:
-----------
Replace typeNames in Dialect with SqlType and SqlTypeRegistry that dialects contribute into
Commit: fa750a9c26e267e9639583243b2de3859e600878
https://github.com/hibernate/hibernate-orm/commit/fa750a9c26e267e96395832...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/InformixDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/IngresDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MimerSQLDialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/RDMSOS2200Dialect.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SybaseAnywhereDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/AbstractTransactSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DerbyDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/OracleDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SQLServerDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SpannerDialect.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/spi/DdlTypeRegistry.java
Log Message:
-----------
Make LONGX types synonyms for X types again and remove unnecessary case labels
Compare: https://github.com/hibernate/hibernate-orm/compare/7a55c7b34b88...fa750a9...
2 years, 10 months
[hibernate/hibernate-orm] 7a55c7: HHH-15071 Apply type inference in SQM for like pre...
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 7a55c7b34b886b9469524d2dce514797d4e9b091
https://github.com/hibernate/hibernate-orm/commit/7a55c7b34b886b9469524d2...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/spi/AbstractQueryParameter.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmExpression.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/predicate/SqmLikePredicate.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/predicate/SqmMemberOfPredicate.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/ParameterTests.java
Log Message:
-----------
HHH-15071 Apply type inference in SQM for like predicate and avoid NPE in query parameters
2 years, 10 months
[hibernate/hibernate-orm] 3d5585: HHH-13694 fix numeric overflow exception for large...
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 3d55855a873558c3cd8f68a2c12cc7c849762464
https://github.com/hibernate/hibernate-orm/commit/3d55855a873558c3cd8f68a...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/id/enhanced/SequenceStyleGenerator.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/extract/internal/SequenceInformationExtractorLegacyImpl.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/extract/internal/SequenceInformationExtractorOracleDatabaseImpl.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/extract/internal/SequenceInformationExtractorTiDBDatabaseImpl.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/extract/internal/SequenceInformationImpl.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/extract/spi/SequenceInformation.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/internal/AbstractSchemaValidator.java
A hibernate-core/src/test/java/org/hibernate/orm/test/dialect/functional/OracleDialectSequenceInformationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/dialect/functional/OracleSequenceInfoTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/dialect/functional/SequenceInformationTest.java
Log Message:
-----------
HHH-13694 fix numeric overflow exception for large sequence min values
2 years, 10 months
[hibernate/hibernate-orm] 362b4c: HHH-15106 - fk() SQM function
by Steve Ebersole
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 362b4c0ac7821befb866b0985878c16fb0b20e98
https://github.com/hibernate/hibernate-orm/commit/362b4c0ac7821befb866b09...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlLexer.g4
M hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4
M hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/MappingMetamodelImpl.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/SemanticQueryWalker.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmTreePrinter.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/spi/BaseSemanticQueryWalker.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
A hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmFkExpression.java
A hibernate-core/src/test/java/org/hibernate/orm/test/notfound/FkRefTests.java
Log Message:
-----------
HHH-15106 - fk() SQM function
Commit: 0af7ed353a6cf09a78e6315d95498e2a5d16570e
https://github.com/hibernate/hibernate-orm/commit/0af7ed353a6cf09a78e6315...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/TableGroupJoin.java
M hibernate-core/src/test/java/org/hibernate/orm/test/notfound/FkRefTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/notfound/exception/NotFoundExceptionLogicalOneToOneTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/notfound/exception/NotFoundExceptionManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/notfound/ignore/NotFoundIgnoreManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/notfound/ignore/NotFoundIgnoreOneToOneTest.java
Log Message:
-----------
HHH-15099 - Improve handling of associations marked with @NotFound
HHH-15106 - fk() SQM function
Compare: https://github.com/hibernate/hibernate-orm/compare/6e6cc5f06e75...0af7ed3...
2 years, 10 months