Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 6f7b17d36b0a3fc7876dd8880988aff011925b7c
https://github.com/hibernate/hibernate-orm/commit/6f7b17d36b0a3fc7876dd88...
Author: Gavin <gavin(a)hibernate.org>
Date: 2023-01-13 (Fri, 13 Jan 2023)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/internal/util/config/ConfigurationHelper.java
Log Message:
-----------
HHH-16035 change the default for hibernate.type.preferred_duration_jdbc_type to NUMERIC
There's really no value at all in having h2 as the only platform where Duration
is persisted as 'interval second' by default. People usually use h2 for testing,
and probably actually prefer if the schema is more similar to the schema of
their "real" database.
Also, this tiny change fixes issues 1. and 2. of HHH-16035 as a side-effect.
Commit: 6ca9643c72c76556f7adb26262df61669480abad
https://github.com/hibernate/hibernate-orm/commit/6ca9643c72c76556f7adb26...
Author: Gavin <gavin(a)hibernate.org>
Date: 2023-01-13 (Fri, 13 Jan 2023)
Changed paths:
M documentation/src/main/asciidoc/userguide/appendices/LegacyBasicTypeResolution.adoc
M documentation/src/main/asciidoc/userguide/chapters/domain/basic_types.adoc
Log Message:
-----------
HHH-16035 document Duration -> NUMERIC mapping
Commit: 2f5f5b9a50c2eae1730cde744040b07be96b7b44
https://github.com/hibernate/hibernate-orm/commit/2f5f5b9a50c2eae1730cde7...
Author: Gavin <gavin(a)hibernate.org>
Date: 2023-01-13 (Fri, 13 Jan 2023)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java
Log Message:
-----------
HHH-16035 add a test for cast(duration as Long) + tests for duration
arithmetic/literals
(pulls in duration arithmetic tests from other branch)
Commit: 43cce5fe5e2fba4f06299d912f57adbe8b7a8423
https://github.com/hibernate/hibernate-orm/commit/43cce5fe5e2fba4f06299d9...
Author: Gavin <gavin(a)hibernate.org>
Date: 2023-01-13 (Fri, 13 Jan 2023)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
Log Message:
-----------
HHH-16035 fix bug with Durations magnitude being off by 10^9
Commit: ae978b3d10fa77da691c7751764edc97062fe5b3
https://github.com/hibernate/hibernate-orm/commit/ae978b3d10fa77da691c775...
Author: Gavin <gavin(a)hibernate.org>
Date: 2023-01-13 (Fri, 13 Jan 2023)
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/query/hql/internal/SemanticQueryBuilder.java
Log Message:
-----------
fix an ambiguity in the grammar of datetime literals
this was my very stupid mistake
Commit: a9414fa6be224bed717baf5df6b2347359f159b2
https://github.com/hibernate/hibernate-orm/commit/a9414fa6be224bed717baf5...
Author: Gavin <gavin(a)hibernate.org>
Date: 2023-01-13 (Fri, 13 Jan 2023)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/LiteralTests.java
Log Message:
-----------
disable test for no-longer-allowed literal syntax
I had to disallow this because it was too ambiguous
Compare:
https://github.com/hibernate/hibernate-orm/compare/669be6a776d9...a9414fa...