[hibernate/hibernate-orm] 8e6fb5: Adapt EmbeddableInstantiator and CompositeUserType...
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 8e6fb5636be2c54adb0d914bec6782b93349ae0b
https://github.com/hibernate/hibernate-orm/commit/8e6fb5636be2c54adb0d914...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-02-25 (Fri, 25 Feb 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/MonetaryAmountUserType.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/EmbeddableCompositeUserTypeInstantiator.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/EmbeddableInstantiatorDynamicMap.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/EmbeddableInstantiatorPojoOptimized.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/EmbeddableInstantiatorPojoStandard.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/EmbeddableInstantiatorProxied.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/VirtualIdRepresentationStrategy.java
M hibernate-core/src/main/java/org/hibernate/metamodel/spi/EmbeddableInstantiator.java
A hibernate-core/src/main/java/org/hibernate/metamodel/spi/ValueAccess.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/embeddable/AbstractEmbeddableInitializer.java
M hibernate-core/src/main/java/org/hibernate/usertype/CompositeUserType.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/entity/MonetaryAmountInstantiator.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/embeddable/strategy/instantiator/embeddable/NameInstantiator.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/embeddable/strategy/instantiator/embedded/NameInstantiator.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/embeddable/strategy/instantiator/intf/NameInstantiator.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/embeddable/strategy/instantiator/intf2/NameInstantiator.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/embeddable/strategy/instantiator/registered/NameInstantiator.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/MonetaryAmountUserType.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/customtype/ObjectUserType.java
Log Message:
-----------
Adapt EmbeddableInstantiator and CompositeUserType to accept a ValueAccess instead of a Supplier
2 years, 9 months
[hibernate/hibernate-orm] c520b4: Implement support for CompositeUserType and re-ena...
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: c520b48487ffcc2939c96552f17782f42ef965ce
https://github.com/hibernate/hibernate-orm/commit/c520b48487ffcc2939c9655...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-02-25 (Fri, 25 Feb 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/mapping/basic/ColumnTransformerTest.java
A documentation/src/test/java/org/hibernate/userguide/mapping/basic/MonetaryAmountUserType.java
A hibernate-core/src/main/java/org/hibernate/annotations/CompositeType.java
A hibernate-core/src/main/java/org/hibernate/annotations/CompositeTypeRegistration.java
A hibernate-core/src/main/java/org/hibernate/annotations/CompositeTypeRegistrations.java
A hibernate-core/src/main/java/org/hibernate/annotations/MapKeyCustomCompositeType.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/InFlightMetadataCollectorImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java
M hibernate-core/src/main/java/org/hibernate/boot/query/HbmResultSetMappingDescriptor.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/InFlightMetadataCollector.java
M hibernate-core/src/main/java/org/hibernate/cfg/AbstractPropertyHolder.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotatedColumn.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/PropertyHolder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/MapBinder.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/mapping/Property.java
A hibernate-core/src/main/java/org/hibernate/metamodel/internal/EmbeddableCompositeUserTypeInstantiator.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/EmbeddableRepresentationStrategyPojo.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/EntityRepresentationStrategyPojoStandard.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/ManagedTypeRepresentationResolverStandard.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/BasicValuedCollectionPart.java
A hibernate-core/src/main/java/org/hibernate/property/access/internal/PropertyAccessCompositeUserTypeImpl.java
A hibernate-core/src/main/java/org/hibernate/property/access/internal/PropertyAccessStrategyCompositeUserTypeImpl.java
M hibernate-core/src/main/java/org/hibernate/query/internal/FetchMementoHbmStandard.java
M hibernate-core/src/main/java/org/hibernate/query/results/complete/CompleteFetchBuilderEntityValuedModelPart.java
M hibernate-core/src/main/java/org/hibernate/query/results/dynamic/AbstractFetchBuilderContainer.java
M hibernate-core/src/main/java/org/hibernate/query/results/dynamic/DynamicFetchBuilderContainer.java
M hibernate-core/src/main/java/org/hibernate/query/results/dynamic/DynamicFetchBuilderLegacy.java
M hibernate-core/src/main/java/org/hibernate/query/results/dynamic/DynamicFetchBuilderStandard.java
M hibernate-core/src/main/java/org/hibernate/query/results/dynamic/DynamicResultBuilderEntityStandard.java
M hibernate-core/src/main/java/org/hibernate/query/sql/internal/ResultSetMappingProcessor.java
M hibernate-core/src/main/java/org/hibernate/type/ComponentType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/CurrencyJavaType.java
A hibernate-core/src/main/java/org/hibernate/type/internal/CompositeUserTypeJavaTypeWrapper.java
A hibernate-core/src/main/java/org/hibernate/usertype/CompositeUserType.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/MonetaryAmountUserType.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/CustomSQLTestSupport.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/CustomStoredProcTestSupport.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/datadirect/oracle/StoredProcedures.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/db2/DB2CustomSQLTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/db2/Mappings.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/derby/DerbyCustomSQLTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/derby/DerbyStoreProcedures.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/derby/Mappings.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/mysql/Mappings.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/mysql/MySQLCustomSQLTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/oracle/Mappings.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/oracle/OracleCustomSQLTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/oracle/StoredProcedures.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/sqlserver/Mappings.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/sqlserver/SQLServerCustomSQLTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/sybase/Mappings.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/custom/sybase/SybaseCustomSQLTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/query/NativeSQLQueries.hbm.xml
A hibernate-core/src/test/java/org/hibernate/orm/test/sql/hand/query/NativeSQLQueriesTest.java
R hibernate-core/src/test_legacy/org/hibernate/test/sql/hand/query/NativeSQLQueriesTest.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/AbstractCollectionMetadataGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/AuditMetadataGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/ComponentMetadataGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/ValueMetadataGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PersistentPropertiesSource.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/PropertyData.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/ComponentPropertyMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/CompositeMapperBuilder.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/MultiDynamicComponentMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/MultiPropertyMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/PropertyMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/SinglePropertyMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/SubclassPropertyMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/AbstractCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/AbstractOneToOneMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/AbstractToOneMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/ToOneIdMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/component/MiddleEmbeddableComponentMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/ReflectionTools.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/customtype/ObjectUserType.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/customtype/ObjectUserTypeEntity.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/customtype/ObjectUserTypeTest.java
M migration-guide.adoc
Log Message:
-----------
Implement support for CompositeUserType and re-enable tests that make use of it
2 years, 9 months
[hibernate/hibernate-orm] 335ed1: Various fixes
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 335ed198213af26b294cf92b79e3f19c5d870433
https://github.com/hibernate/hibernate-orm/commit/335ed198213af26b294cf92...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-02-24 (Thu, 24 Feb 2022)
Changed paths:
M hibernate-core/src/main/antlr/org/hibernate/grammars/hql/HqlParser.g4
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EntityCollectionPart.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/BasicDotIdentifierConsumer.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/QualifiedJoinPathConsumer.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/QualifiedJoinPredicatePathConsumer.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/SqmPathRegistryImpl.java
M hibernate-core/src/main/java/org/hibernate/query/hql/spi/SqmPathRegistry.java
M hibernate-core/src/main/java/org/hibernate/query/results/FromClauseAccessImpl.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmMappingModelHelper.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmUtil.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/EntityValuedPathInterpretation.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/internal/SqmParameterInterpretation.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/AbstractSqmFrom.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedBagJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedCrossJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedEntityJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedListJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedMapJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedPluralPartJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedRoot.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedSetJoin.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmCorrelatedSingularJoin.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/AbstractSqlAstTranslator.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/FromClauseAccess.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/SimpleFromClauseAccessImpl.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/MutatingTableReferenceGroupWrapper.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/UnionTableGroup.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/indexcoll/IndexedCollectionTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/subquery/SubqueryInSelectClauseTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/valuehandlingmode/inline/NonPkAssociationEqualityPredicateParameterTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/valuehandlingmode/inline/NonPkAssociationEqualityPredicateTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/IsEmptyPredicateTest.java
Log Message:
-----------
Various fixes
* Fix parsing soft-keywords as naked identifiers
* Create proper correlations during parsing
* Fix some type inference issues with entity valued paths
Commit: 247689824f4a378b7b3ad74f7a392e368614db31
https://github.com/hibernate/hibernate-orm/commit/247689824f4a378b7b3ad74...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-02-24 (Thu, 24 Feb 2022)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/bootstrap/binding/annotations/attributeOverrides/PluralEmbeddedOverrideTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/bootstrap/binding/annotations/attributeOverrides/TablePerClassOverrideTests.java
Log Message:
-----------
Re-enable some tests
Commit: 277f10d987ed3aa70b14aa8f7ab7d4c0046c869b
https://github.com/hibernate/hibernate-orm/commit/277f10d987ed3aa70b14aa8...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-02-24 (Thu, 24 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmMappingModelHelper.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/mapcompelem/MapCompositeElementTest.java
Log Message:
-----------
Support implicit joins in plural path parts and fix issues with type resolving of sub query paths
Compare: https://github.com/hibernate/hibernate-orm/compare/075cc8d10873...277f10d...
2 years, 9 months
[hibernate/hibernate-orm] 1f8412: HHH-15060 - Associations with @NotFound should alw...
by Steve Ebersole
Branch: refs/heads/5.6
Home: https://github.com/hibernate/hibernate-orm
Commit: 1f84125e44a0de5c322fa3468d84ddced1351f3c
https://github.com/hibernate/hibernate-orm/commit/1f84125e44a0de5c322fa34...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-02-23 (Wed, 23 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/notfound/NotFoundLogicalOneToOneTest.java
Log Message:
-----------
HHH-15060 - Associations with @NotFound should always be left joined when de-referenced in HQL/Criteria
- `@NotFound` no longer exports a physical foreign-key
Commit: a297a62432b19f174c26fae680f59f0162d9398e
https://github.com/hibernate/hibernate-orm/commit/a297a62432b19f174c26fae...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-02-23 (Wed, 23 Feb 2022)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/notfound/exception/NotFoundExceptionLogicalOneToOneTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/notfound/exception/NotFoundExceptionManyToOneTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/notfound/ignore/NotFoundIgnoreManyToOneTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/notfound/ignore/NotFoundIgnoreOneToOneTest.java
Log Message:
-----------
HHH-15060 - Associations with @NotFound should always be left joined when de-referenced in HQL/Criteria
- `@NotFound` no longer exports a physical foreign-key
- tests showing bugs and inconsistencies wrt `@NotFound` handling
Commit: 6d1a47e5980b23e8688b7d21a0f7450d7450c2a5
https://github.com/hibernate/hibernate-orm/commit/6d1a47e5980b23e8688b7d2...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-02-23 (Wed, 23 Feb 2022)
Changed paths:
A hibernate-core/src/main/java/org/hibernate/FetchNotFoundException.java
M hibernate-core/src/main/java/org/hibernate/annotations/FetchMode.java
M hibernate-core/src/main/java/org/hibernate/annotations/NotFoundAction.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/CollectionSecondPass.java
M hibernate-core/src/main/java/org/hibernate/cfg/OneToOneSecondPass.java
M hibernate-core/src/main/java/org/hibernate/cfg/ToOneFkSecondPass.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/IdBagBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/ListBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/MapBinder.java
M hibernate-core/src/main/java/org/hibernate/mapping/ManyToOne.java
M hibernate-core/src/main/java/org/hibernate/mapping/OneToMany.java
M hibernate-core/src/main/java/org/hibernate/type/ManyToOneType.java
M hibernate-core/src/main/java/org/hibernate/type/TypeFactory.java
M hibernate-core/src/test/java/org/hibernate/cfg/annotations/CollectionBinderTest.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
M hibernate-core/src/test/java/org/hibernate/test/annotations/formula/JoinFormulaOneToManyNotIgnoreLazyFetchingTest.java
M hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/notfound/LazyNotFoundManyToOneNonUpdatableNonInsertableTest.java
M hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/notfound/LazyNotFoundOneToOneNonUpdatableNonInsertableTest.java
M hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/notfound/LazyNotFoundOneToOneTest.java
M hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/SessionFactoryExtension.java
Log Message:
-----------
HHH-15060 - Associations with @NotFound should always be left joined when de-referenced in HQL/Criteria
- `@NotFound` no longer exports a physical foreign-key
- tests showing bugs and inconsistencies wrt `@NotFound` handling
- added `FetchNotFoundException`
- force association to EAGER
Commit: b1e590c3bcbb749fdeaab6d1058e3f3f1757303c
https://github.com/hibernate/hibernate-orm/commit/b1e590c3bcbb749fdeaab6d...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-02-23 (Wed, 23 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/annotations/FetchMode.java
Log Message:
-----------
HHH-15060 - Associations with @NotFound should always be left joined when de-referenced in HQL/Criteria
- `@NotFound` no longer exports a physical foreign-key
- tests showing bugs and inconsistencies wrt `@NotFound` handling
- added `FetchNotFoundException`
- force association to EAGER
Commit: 1097914917f5b943f841af3cf33a145b9ad861f1
https://github.com/hibernate/hibernate-orm/commit/1097914917f5b943f841af3...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2022-02-23 (Wed, 23 Feb 2022)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/jpa/test/query/TypedQueryResultListTest.java
Log Message:
-----------
HHH-15060 Add test for issue
Commit: c200eaa2b3afe2f73a115836b7f70478b406c0c6
https://github.com/hibernate/hibernate-orm/commit/c200eaa2b3afe2f73a11583...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2022-02-23 (Wed, 23 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/DotNode.java
Log Message:
-----------
HHH-15060 Associations with @NotFound should always be left joined when de-referenced in HQL/Criteria
Commit: d530de492b2bc1e423ad88d15f63f1b37a62d6d0
https://github.com/hibernate/hibernate-orm/commit/d530de492b2bc1e423ad88d...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-02-23 (Wed, 23 Feb 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/type/ManyToOneType.java
M hibernate-core/src/main/java/org/hibernate/type/TypeFactory.java
Log Message:
-----------
HHH-15060 - Associations with @NotFound should always be left joined when de-referenced in HQL/Criteria
- `@NotFound` no longer exports a physical foreign-key
- tests showing bugs and inconsistencies wrt `@NotFound` handling
- added `FetchNotFoundException`
- consider a to-one nullable if either:
- explicitly marked nullable
- `@NotFound` is specified, whether IGNORE or EXCEPTION
- force association to EAGER
Compare: https://github.com/hibernate/hibernate-orm/compare/5febc7013442...d530de4...
2 years, 9 months