[hibernate/hibernate-orm] e96402: HHH-16382 Fix resolving table references especiall...
by Christian Beikov
Branch: refs/heads/6.2
Home: https://github.com/hibernate/hibernate-orm
Commit: e96402a0052d320cbd0a82fe788b00b2d3fe81bf
https://github.com/hibernate/hibernate-orm/commit/e96402a0052d320cbd0a82f...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2023-04-24 (Mon, 24 Apr 2023)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/TableGroupFilterAliasGenerator.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/AbstractCompositeIdentifierMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/AttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/BasicEntityIdentifierMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/ForeignKeyDescriptor.java
A hibernate-core/src/main/java/org/hibernate/metamodel/mapping/OwnedValuedModelPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/PluralAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractDomainPath.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractEntityCollectionPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/BasicAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/BasicEntityIdentifierMappingImpl.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/BasicValuedCollectionPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/CaseStatementDiscriminatorMappingImpl.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/EmbeddedAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddedCollectionPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddedForeignKeyDescriptor.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/IdClassEmbeddable.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/ManyToManyCollectionPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/OneToManyCollectionPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/SimpleForeignKeyDescriptor.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/SingleAttributeIdentifierMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/ToOneAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/VirtualIdEmbeddable.java
M hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/SingularAttributeImpl.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/query/derived/AnonymousTupleBasicEntityIdentifierMapping.java
M hibernate-core/src/main/java/org/hibernate/query/derived/AnonymousTupleBasicValuedModelPart.java
M hibernate-core/src/main/java/org/hibernate/query/derived/AnonymousTupleEmbeddableValuedModelPart.java
M hibernate-core/src/main/java/org/hibernate/query/derived/AnonymousTupleEmbeddedEntityIdentifierMapping.java
M hibernate-core/src/main/java/org/hibernate/query/derived/AnonymousTupleEntityValuedModelPart.java
M hibernate-core/src/main/java/org/hibernate/query/derived/AnonymousTupleNonAggregatedEntityIdentifierMapping.java
M hibernate-core/src/main/java/org/hibernate/query/derived/AnonymousTupleTableGroupProducer.java
M hibernate-core/src/main/java/org/hibernate/query/derived/CteTupleTableGroupProducer.java
M hibernate-core/src/main/java/org/hibernate/query/results/DomainResultCreationStateImpl.java
M hibernate-core/src/main/java/org/hibernate/query/results/TableGroupImpl.java
M hibernate-core/src/main/java/org/hibernate/query/results/complete/CompleteFetchBuilderBasicPart.java
M hibernate-core/src/main/java/org/hibernate/query/results/complete/CompleteFetchBuilderEmbeddableValuedModelPart.java
M hibernate-core/src/main/java/org/hibernate/query/results/complete/CompleteFetchBuilderEntityValuedModelPart.java
M hibernate-core/src/main/java/org/hibernate/query/results/complete/CompleteResultBuilderBasicModelPart.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/implicit/ImplicitFetchBuilderBasic.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/cte/CteDeleteHandler.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/cte/CteInsertHandler.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/cte/CteUpdateHandler.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/inline/InlineUpdateHandler.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/temptable/InsertExecutionDelegate.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/temptable/RestrictedDeleteExecutionDelegate.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/temptable/UpdateExecutionDelegate.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/BasicValuedPathInterpretation.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/internal/EntityValuedPathInterpretation.java
M hibernate-core/src/main/java/org/hibernate/spi/NavigablePath.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/cte/CteTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/AbstractColumnReferenceQualifier.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/CollectionTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/ColumnReferenceQualifier.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/CorrelatedPluralTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/CorrelatedTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/DelegatingTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/DerivedTableReference.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/FunctionTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/LazyTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/MappedByTableGroup.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/NamedTableReference.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/OneToManyTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/QueryPartTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/StandardTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/StandardVirtualTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/TableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/TableReference.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/UnionTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/UnionTableReference.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/ValuesTableGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/model/ast/MutatingTableReference.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/DatabaseSnapshotContributor.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/DomainResultCreationState.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/FetchParent.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/Fetchable.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/collection/internal/CollectionDomainResult.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/collection/internal/EagerCollectionFetch.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/embeddable/AbstractEmbeddableInitializer.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/AbstractEntityResultGraphNode.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/AbstractNonLazyEntityFetch.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/internal/EntityDelayedResultImpl.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/internal/NotFoundSnapshotResult.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/cid/keymanytoone/association/CardField.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/cid/keymanytoone/association/Key.java
A hibernate-core/src/test/java/org/hibernate/orm/test/annotations/embedded/EmbeddableWithManyToOneSelfReferenceTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/compositefk/LazyManyToOneEmbeddedIdWithToOneFKTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/compositefk/ManyToOneEmbeddedIdWithToOneFKTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/embeddable/EmbeddableQuerySelectTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/entitygraph/ast/CriteriaEntityGraphTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/entitygraph/ast/EntityGraphLoadPlanBuilderTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/entitygraph/ast/HqlEntityGraphTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/graph/HHH15065Test.java
M hibernate-core/src/test/java/org/hibernate/orm/test/hql/ManyToOneJoinReuseTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/idclass/IdClassEagerQuerySelectTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/idclass/IdClassQuerySelectTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/GeneratedAnnotationBatchTest.java
M hibernate-envers/src/main/java/org/hibernate/envers/function/OrderByFragmentFunction.java
Log Message:
-----------
HHH-16382 Fix resolving table references especially for self-referential associations
1 year, 7 months