[hibernate/hibernate-orm] 10bb3c: HHH-20661 Return shared DateJavaType instances per...
by monkey
Branch: refs/heads/7.4
Home: https://github.com/hibernate/hibernate-orm
Commit: 10bb3c2a7eeb6e4791af2cb892266ecb88d66ac0
https://github.com/hibernate/hibernate-orm/commit/10bb3c2a7eeb6e4791af2cb...
Author: Develop-KIM <kimdonghwan913(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DateJavaType.java
A hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/UnionSameJavaTypeDifferentPathTest.java
Log Message:
-----------
HHH-20661 Return shared DateJavaType instances per temporal precision
DateJavaType#resolveTypeForPrecision created a new DateJavaType on every
call, so the same java.util.Date reached through different attribute paths
(e.g. an entity field vs. one inherited from a @MappedSuperclass) resolved
to distinct JavaType instances. A union of two such columns was then
rejected by SqmQueryGroup's identity comparison with "Select items of the
same index must have the same java type across all query parts", even
though the equivalent Criteria query worked.
Follow the pattern used by the other temporal JavaTypes: override
forDatePrecision/forTimePrecision/forTimestampPrecision to return shared
per-precision instances instead of allocating a new one. Resolving the
same precision now yields the same instance, so the existing identity
comparison keeps working and genuinely different types are still rejected.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply(a)anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
1 month, 2 weeks
[hibernate/hibernate-orm] 3de0d7: HHH-20661 Return shared DateJavaType instances per...
by monkey
Branch: refs/heads/8.0
Home: https://github.com/hibernate/hibernate-orm
Commit: 3de0d72144c5385e03cafacbdb2c087f4f3ce911
https://github.com/hibernate/hibernate-orm/commit/3de0d72144c5385e03cafac...
Author: Develop-KIM <kimdonghwan913(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DateJavaType.java
A hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/UnionSameJavaTypeDifferentPathTest.java
Log Message:
-----------
HHH-20661 Return shared DateJavaType instances per temporal precision
DateJavaType#resolveTypeForPrecision created a new DateJavaType on every
call, so the same java.util.Date reached through different attribute paths
(e.g. an entity field vs. one inherited from a @MappedSuperclass) resolved
to distinct JavaType instances. A union of two such columns was then
rejected by SqmQueryGroup's identity comparison with "Select items of the
same index must have the same java type across all query parts", even
though the equivalent Criteria query worked.
Follow the pattern used by the other temporal JavaTypes: override
forDatePrecision/forTimePrecision/forTimestampPrecision to return shared
per-precision instances instead of allocating a new one. Resolving the
same precision now yields the same instance, so the existing identity
comparison keeps working and genuinely different types are still rejected.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply(a)anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
1 month, 2 weeks
[hibernate/hibernate-validator] a5efbc: Preparing next development iteration
by Marko Bekhta
Branch: refs/heads/wip/main/jakarta-validation-40
Home: https://github.com/hibernate/hibernate-validator
Commit: a5efbc9fea8bed96601c53f02abe6b2338d720e1
https://github.com/hibernate/hibernate-validator/commit/a5efbc9fea8bed966...
Author: marko-bekhta <marko.prykladna(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M annotation-processor/pom.xml
M bom/pom.xml
M build/build-config/pom.xml
M build/enforcer/pom.xml
M build/reports/pom.xml
M cdi/pom.xml
M distribution/pom.xml
M documentation/pom.xml
M engine/pom.xml
M integrationtest/java/modules/cdi/pom.xml
M integrationtest/java/modules/no-el/pom.xml
M integrationtest/java/modules/simple/pom.xml
M integrationtest/java/modules/test-utils/pom.xml
M integrationtest/wildfly/pom.xml
M parents/internal/pom.xml
M parents/public/pom.xml
M performance/pom.xml
M pom.xml
M tck-runner/pom.xml
M test-utils/pom.xml
Log Message:
-----------
Preparing next development iteration
Signed-off-by: marko-bekhta <marko.prykladna(a)gmail.com>
Commit: 84e4faa504007a861dbaebd2f33a1d9690c12690
https://github.com/hibernate/hibernate-validator/commit/84e4faa504007a861...
Author: marko-bekhta <marko.prykladna(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M build/build-config/pom.xml
M pom.xml
Log Message:
-----------
Initial setup to enable Jakarta Validation 4.0 development
TODO: revert the changes from this commit once ready to merge to main
Signed-off-by: marko-bekhta <marko.prykladna(a)gmail.com>
Commit: ff391f7d93423bca6c437d84fa9b5314d53cd7fe
https://github.com/hibernate/hibernate-validator/commit/ff391f7d93423bca6...
Author: marko-bekhta <marko.prykladna(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/xml/config/ValidationXmlParser.java
M engine/src/main/java/org/hibernate/validator/internal/xml/mapping/MappingXmlParser.java
A engine/src/main/xsd/validation-configuration-4.0.xsd
A engine/src/main/xsd/validation-mapping-4.0.xsd
M pom.xml
M tck-runner/pom.xml
Log Message:
-----------
Switch to Jakarta Validation 4.0 dependencies and add the XSDs
Signed-off-by: marko-bekhta <marko.prykladna(a)gmail.com>
Commit: f3c32d79783aa5dec77929033b15b7de20b7b123
https://github.com/hibernate/hibernate-validator/commit/f3c32d79783aa5dec...
Author: marko-bekhta <marko.prykladna(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/engine/constraintvalidation/ConstraintValidatorContextImpl.java
M engine/src/test/java/org/hibernate/validator/test/constraints/ConstraintValidatorContextTest.java
M pom.xml
M tck-runner/pom.xml
Log Message:
-----------
More updates to match Jakarta Validation 4.0 api
Signed-off-by: marko-bekhta <marko.prykladna(a)gmail.com>
# Conflicts:
# engine/src/main/java/org/hibernate/validator/internal/engine/constraintvalidation/ConstraintValidatorContextImpl.java
Commit: cc3137758558d394aba34d7443218e59003db016
https://github.com/hibernate/hibernate-validator/commit/cc3137758558d394a...
Author: marko-bekhta <marko.prykladna(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M engine/src/main/java/org/hibernate/validator/internal/metadata/descriptor/ConstraintDescriptorImpl.java
Log Message:
-----------
Add implementation for ConstraintDescriptor#getAttribute
Signed-off-by: marko-bekhta <marko.prykladna(a)gmail.com>
Commit: c33dfce6ebd900ecb36092eed5c2ed2262c88346
https://github.com/hibernate/hibernate-validator/commit/c33dfce6ebd900ecb...
Author: marko-bekhta <marko.prykladna(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M annotation-processor/src/main/java/org/hibernate/validator/ap/internal/checks/ConstraintValidatorCheck.java
M annotation-processor/src/main/java/org/hibernate/validator/ap/internal/util/ConstraintHelper.java
Log Message:
-----------
Account for the fact that validatedBy can now be null in the AP
since it has a default value of {}
Signed-off-by: marko-bekhta <marko.prykladna(a)gmail.com>
Commit: c15d5e2b9a0c8aa8e100d10c54a2f3fdb564ecc2
https://github.com/hibernate/hibernate-validator/commit/c15d5e2b9a0c8aa8e...
Author: marko-bekhta <marko.prykladna(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M tck-runner/pom.xml
Log Message:
-----------
Fix signature file paths
Compare: https://github.com/hibernate/hibernate-validator/compare/e4e47622c075...c...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-validator/settings/notifications
1 month, 2 weeks
[hibernate/hibernate-orm] 434e45: HHH-20661 Return shared DateJavaType instances per...
by monkey
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 434e45815dc366c09648c854eecf6cc6487e470d
https://github.com/hibernate/hibernate-orm/commit/434e45815dc366c09648c85...
Author: Develop-KIM <kimdonghwan913(a)gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DateJavaType.java
A hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/UnionSameJavaTypeDifferentPathTest.java
Log Message:
-----------
HHH-20661 Return shared DateJavaType instances per temporal precision
DateJavaType#resolveTypeForPrecision created a new DateJavaType on every
call, so the same java.util.Date reached through different attribute paths
(e.g. an entity field vs. one inherited from a @MappedSuperclass) resolved
to distinct JavaType instances. A union of two such columns was then
rejected by SqmQueryGroup's identity comparison with "Select items of the
same index must have the same java type across all query parts", even
though the equivalent Criteria query worked.
Follow the pattern used by the other temporal JavaTypes: override
forDatePrecision/forTimePrecision/forTimestampPrecision to return shared
per-precision instances instead of allocating a new one. Resolving the
same precision now yields the same instance, so the existing identity
comparison keeps working and genuinely different types are still rejected.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply(a)anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
1 month, 2 weeks