[hibernate/hibernate-orm] a4f301: HHH-15819 fix extract(offset hour from datetime)
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: a4f301814b69fcf5cd386c7c815414691beddedc
https://github.com/hibernate/hibernate-orm/commit/a4f301814b69fcf5cd386c7...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-07 (Wed, 07 Dec 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/util/config/ConfigurationHelper.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/OffsetDateTimeJavaType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/InstantAsTimestampWithTimeZoneJdbcType.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/StandardFunctionTests.java
Log Message:
-----------
HHH-15819 fix extract(offset hour from datetime)
bug noticed by @mrotteveel
improve the tests for extracting time zones
Commit: 863dda5cf54a26bf6043203030cc3664815232f8
https://github.com/hibernate/hibernate-orm/commit/863dda5cf54a26bf6043203...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-07 (Wed, 07 Dec 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/annotations/TimeZoneStorageType.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M hibernate-core/src/test/java/org/hibernate/orm/test/type/OffsetDateTimeTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/type/ZonedDateTimeTest.java
Log Message:
-----------
HHH-15820 make the default TimeZoneStorageStrategy for [Zoned|Offset]DateTime depend on the dialect
Define TimeZoneStorageType.DEFAULT, uses NATIVE if possible, falls back to NORMALIZE_UTC
so that for dialects with proper support for TIMESTAMP WITH TIME ZONE we use it
this is consistent with what we already do for Instant
Commit: e53b55583bde93bbb8308939c24f60ad017470be
https://github.com/hibernate/hibernate-orm/commit/e53b55583bde93bbb830893...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-07 (Wed, 07 Dec 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/TimeZoneStorageStrategy.java
M 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
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/VersionResolution.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/BasicValueBinder.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/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/TimeZoneSupport.java
M hibernate-core/src/main/java/org/hibernate/mapping/BasicValue.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/OffsetDateTimeJavaType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/ZonedDateTimeJavaType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JdbcTypeIndicators.java
M hibernate-core/src/main/java/org/hibernate/type/spi/TypeConfiguration.java
Log Message:
-----------
misc javadoc and refactorings around TimeZoneStorage stuff
Commit: 4fba6ac60dca278cac8c6f57fd557b82b08a32e0
https://github.com/hibernate/hibernate-orm/commit/4fba6ac60dca278cac8c6f5...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-07 (Wed, 07 Dec 2022)
Changed paths:
A documentation/src/test/java/org/hibernate/userguide/mapping/basic/AutoZonedTest.java
A documentation/src/test/java/org/hibernate/userguide/mapping/basic/ColumnZonedTest.java
A documentation/src/test/java/org/hibernate/userguide/mapping/basic/DefaultZonedTest.java
A documentation/src/test/java/org/hibernate/userguide/mapping/basic/NormalizedZonedTest.java
Log Message:
-----------
add tests for [Zoned|Offset]DateTime handling with AvailableSettings.TIMEZONE_DEFAULT_STORAGE set
Commit: ee66a9330266590bab6903ce25bb3189db766d42
https://github.com/hibernate/hibernate-orm/commit/ee66a9330266590bab6903c...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-07 (Wed, 07 Dec 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.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/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/type/descriptor/jdbc/InstantJdbcType.java
Log Message:
-----------
HHH-15828 fix setting TIMEZONE_DEFAULT_STORAGE to COLUMN
Commit: ef4ed9936eb0a5313390cf5575066da7fac95bee
https://github.com/hibernate/hibernate-orm/commit/ef4ed9936eb0a5313390cf5...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-07 (Wed, 07 Dec 2022)
Changed paths:
R documentation/src/test/java/org/hibernate/userguide/mapping/basic/AutoZonedTest.java
R documentation/src/test/java/org/hibernate/userguide/mapping/basic/ColumnZonedTest.java
R documentation/src/test/java/org/hibernate/userguide/mapping/basic/DefaultZonedTest.java
R documentation/src/test/java/org/hibernate/userguide/mapping/basic/NormalizedZonedTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/timezones/AutoZonedTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/timezones/ColumnZonedTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/timezones/DefaultZonedTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/timezones/NormalizedZonedTest.java
Log Message:
-----------
move timezone tests where they belong
Commit: 015010febbccec454376db2887edb619839aef63
https://github.com/hibernate/hibernate-orm/commit/015010febbccec454376db2...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-07 (Wed, 07 Dec 2022)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/timezones/AutoZonedTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/timezones/ColumnZonedTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/timezones/DefaultZonedTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/timezones/NormalizedZonedTest.java
Log Message:
-----------
let's see if this works
Compare: https://github.com/hibernate/hibernate-orm/compare/e0887386873f...015010f...
2 years
[hibernate/hibernate-orm] 9290f8: HHH-15812 Firebird dialect improvements
by Mark Rotteveel
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 9290f8b754446fd79f5aa06dcf9dce158853caee
https://github.com/hibernate/hibernate-orm/commit/9290f8b754446fd79f5aa06...
Author: Mark Rotteveel <mark(a)lawinegevaar.nl>
Date: 2022-12-06 (Tue, 06 Dec 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/hql/HQLTest.java
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/SubselectTest.java
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/TimeZoneStorageMappingTests.java
M gradle/databases.gradle
M gradle/java-module.gradle
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/CommunityDatabase.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/FirebirdSqlAstTranslator.java
M hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/sequence/FirebirdSequenceSupport.java
M hibernate-core/src/test/java/org/hibernate/orm/test/entitygraph/named/basic/LoadFetchGraphWithEagerSelfReferencingEagerToOneTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/filter/FilterParameterTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/hbm/collectionpk/CollectionPkTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/NonUniqueIdTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jdbc/internal/BasicConnectionTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jdbc/internal/BatchingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/lock/LockTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/query/NativeQueryResultTypeAutoDiscoveryTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/fetch/subselect/SubselectFetchWithFormulaTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/namingstrategy/complete/LegacyJpaNamingWithAnnotationBindingTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/namingstrategy/complete/LegacyJpaNamingWithHbmBindingTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/NativeQueryWithParenthesesTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/StandardFunctionTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaMigratorHaltOnErrorTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/SchemaUpdateHaltOnErrorTest.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/JoinedInheritanceForeignKeyTest.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/where/annotations/LazyManyToManyNonUniqueIdWhereTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/where/annotations/LazyOneToManyNonUniqueIdWhereTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/where/hbm/LazyManyToManyNonUniqueIdNotFoundWhereTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/where/hbm/LazyManyToManyNonUniqueIdWhereTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/where/hbm/LazyOneToManyNonUniqueIdWhereTest.java
M hibernate-testing/hibernate-testing.gradle
M hibernate-testing/src/main/java/org/hibernate/testing/DialectChecks.java
M hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
M settings.gradle
Log Message:
-----------
HHH-15812 Firebird dialect improvements
Commit: d91e878c66da71ed9a924d398b202582b72f24d3
https://github.com/hibernate/hibernate-orm/commit/d91e878c66da71ed9a924d3...
Author: Mark Rotteveel <mark(a)lawinegevaar.nl>
Date: 2022-12-06 (Tue, 06 Dec 2022)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/StandardFunctionTests.java
Log Message:
-----------
HHH-15812 Remove dialect checks due to fix in #5699
Compare: https://github.com/hibernate/hibernate-orm/compare/0745a2e294af...d91e878...
2 years
[hibernate/hibernate-orm] cb35e0: HHH-15797 better error messages
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: cb35e0e734789e1f1d9b6ee3bbc66816ddbc353d
https://github.com/hibernate/hibernate-orm/commit/cb35e0e734789e1f1d9b6ee...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-05 (Mon, 05 Dec 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/schema/CheckTest.java
M documentation/src/test/java/org/hibernate/userguide/sql/SQLTest.java
M hibernate-core/src/main/java/org/hibernate/JDBCException.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/SqlFunction.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticReadUpdateLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticWriteUpdateLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/UpdateLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/temptable/TemporaryTableHelper.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/ResultSetReturnImpl.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/AbstractMutationExecutor.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/MutationExecutorPostInsert.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/spi/ResultSetReturn.java
M hibernate-core/src/main/java/org/hibernate/exception/SQLGrammarException.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/SourceGeneration.java
M hibernate-core/src/main/java/org/hibernate/id/IncrementGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/insert/AbstractSelectingDelegate.java
M hibernate-core/src/main/java/org/hibernate/id/insert/GetGeneratedKeysDelegate.java
M hibernate-core/src/main/java/org/hibernate/id/insert/InsertReturningDelegate.java
M hibernate-core/src/main/java/org/hibernate/internal/ExceptionConverterImpl.java
M hibernate-core/src/main/java/org/hibernate/sql/model/jdbc/OptionalTableUpdateOperation.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/embeddables/EmbeddableIntegratorTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/immutable/ImmutableEntityUpdateQueryHandlingModeExceptionTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/join/JoinTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetomany/OneToManyTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetoone/OptionalOneToOneMappedByTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetoone/OptionalOneToOnePKJCTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/tableperclass/TablePerClassTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/uniqueconstraint/UniqueConstraintTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/uniqueconstraint/UniqueConstraintThrowsConstraintViolationExceptionTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/exceptionhandling/ExceptionExpectations.java
M hibernate-core/src/test/java/org/hibernate/orm/test/exceptionhandling/NonActiveTransactionSessionFindJdbcExceptionHandlingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/interceptor/InterceptorTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/NamedQueryTransactionFailureTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/nulliteral/CriteriaLiteralsTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/exception/ExceptionTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/transaction/TransactionJoiningTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/manytomanyassociationclass/surrogateid/generated/ManyToManyAssociationClassGeneratedIdTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/onetoone/hhh9798/OneToOneJoinTableTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/ops/CreateTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/tenantid/TenantIdTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/tenantlongid/TenantLongIdTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/tenantuuid/TenantUuidTest.java
Log Message:
-----------
HHH-15797 better error messages
1. include the SQL in some SQLGrammarExceptions where it was missing
2. append the SQL to the error message in JDBCException
3. don't wrap HibernateException in PersistenceException b/c it is one already
2 years