[hibernate/hibernate-orm] 75caf1: HHH-16382 Fix resolving table references especiall...
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 75caf15e6b54dd534d191fbe9a23bea99a3a46c7
https://github.com/hibernate/hibernate-orm/commit/75caf15e6b54dd534d191fb...
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