[hibernate/hibernate-orm] 46a16c: Add support for DML with versioned entities
by Christian Beikov
Branch: refs/heads/wip/6.0
Home: https://github.com/hibernate/hibernate-orm
Commit: 46a16c605a71b26f5d68b5075b411b3424caad8b
https://github.com/hibernate/hibernate-orm/commit/46a16c605a71b26f5d68b50...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-04-01 (Thu, 01 Apr 2021)
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/param/VersionTypeSeedParameterSpecification.java
M hibernate-core/src/main/java/org/hibernate/query/criteria/JpaCriteriaUpdate.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmTreePrinter.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/idtable/TableBasedUpdateHandler.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/update/SqmUpdateStatement.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/predicate/ExistsPredicate.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/select/QueryGroup.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/select/QueryPart.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/select/QuerySpec.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JdbcTypeDescriptor.java
Log Message:
-----------
Add support for DML with versioned entities
Commit: e22dc55adb1830d9b059135c2303658cd52dbe6d
https://github.com/hibernate/hibernate-orm/commit/e22dc55adb1830d9b059135...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-04-01 (Thu, 01 Apr 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/function/CommonFunctionFactory.java
M hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleUniqueKeyEntityLoaderStandard.java
M hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/ListAttributeImpl.java
M hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/MapAttributeImpl.java
M hibernate-core/src/main/java/org/hibernate/procedure/internal/NamedCallableQueryMementoImpl.java
M hibernate-core/src/main/java/org/hibernate/query/hql/internal/NamedHqlQueryMementoImpl.java
M hibernate-core/src/main/java/org/hibernate/query/hql/spi/NamedHqlQueryMemento.java
M hibernate-core/src/main/java/org/hibernate/query/named/NamedQueryMemento.java
M hibernate-core/src/main/java/org/hibernate/query/spi/QueryEngine.java
M hibernate-core/src/main/java/org/hibernate/query/sql/internal/NamedNativeQueryMementoImpl.java
M hibernate-core/src/main/java/org/hibernate/query/sql/spi/NamedNativeQueryMemento.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/NodeBuilder.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/SemanticQueryWalker.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/ConcreteSqmSelectQueryPlan.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmCriteriaNodeBuilder.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/SqmMappingModelHelper.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/produce/function/StandardFunctionReturnTypeResolvers.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/spi/BaseSemanticQueryWalker.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.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/SqmIndexedCollectionAccessPath.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmMaxElementPath.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmMaxIndexPath.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmMinElementPath.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/domain/SqmMinIndexPath.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/select/SqmJpaCompoundSelection.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/tree/select/SqmSelectStatement.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/AbstractSqlAstTranslator.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/CaseSimpleExpression.java
M hibernate-core/src/main/java/org/hibernate/sql/results/internal/RowTransformerJpaTupleImpl.java
M hibernate-core/src/main/java/org/hibernate/sql/results/internal/TupleImpl.java
A hibernate-core/src/main/java/org/hibernate/sql/results/internal/TupleMetadata.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc/JdbcTypeDescriptor.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/FunctionTests.java
Log Message:
-----------
Various fixes
* Resolve return type for SUM according to JPA spec
* Specify invariant return types for SQRT and MOD as required by the JPA spec
* Fix JPA tuple element access support
* Fix join management for JPA related methods
* Handle optional escape character for like predicate
* Implement type inference for result arms of case expressions
* Implement min/max element/index functions as sub-query
* Implement min/max function support
* Implement emptiness, exists and member of predicate for JPA Criteria
* Implement size function as sub-query
* Implement group by entity alias by using FK key
Commit: f1ede3df4f14ddee092ef0eeac7cc4d7268f366f
https://github.com/hibernate/hibernate-orm/commit/f1ede3df4f14ddee092ef0e...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-04-01 (Thu, 01 Apr 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/InferredBasicValueResolver.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/EmbeddableMappingType.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
M hibernate-core/src/main/java/org/hibernate/sql/Template.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/AbstractSqlAstTranslator.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/spi/JavaTypeDescriptorBaseline.java
M hibernate-core/src/test/java/org/hibernate/orm/test/constraint/ForeignKeyConstraintTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/EntityOfFormulas.hbm.xml
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/AggregateFunctionsWithSubSelectTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/hql/QueryParametersValidationArrayTest.java
Log Message:
-----------
Fix type resolution issues and add missing JTDs. Fix SQL trim parsing and some newly added tests
Compare: https://github.com/hibernate/hibernate-orm/compare/af891c099700...f1ede3d...
3 years, 8 months
[hibernate/hibernate-orm] af891c: re-enable tests
by Steve Ebersole
Branch: refs/heads/wip/6.0
Home: https://github.com/hibernate/hibernate-orm
Commit: af891c09970002e57cef43ac18375fe1b6cd79ac
https://github.com/hibernate/hibernate-orm/commit/af891c09970002e57cef43a...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2021-04-01 (Thu, 01 Apr 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/AbstractCompositeIdentifierMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/EmbeddableMappingType.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/ForeignKeyDescriptor.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/ModelPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/SelectableMappings.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/EntityCollectionPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/MappingModelCreationHelper.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/PluralAttributeMappingImpl.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/SingleSelectableMappings.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/ToOneAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/mutation/internal/cte/CteDeleteHandler.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/SqlAliasBaseImpl.java
A hibernate-core/src/test/java/org/hibernate/orm/test/constraint/NonRootTablePolymorphicTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/manytoone/ManyToOneJoinTableTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/manytoone/ManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/onetoone/EntityWithBidirectionalAssociationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/onetoone/EntityWithOneBidirectionalJoinTableAssociationTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/onetoone/EntityWithOneToOneJoinTableTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/onetoone/EntityWithOneToOneSharingPrimaryKeyTest.java
Log Message:
-----------
re-enable tests
re-organize some tests
clean-up and tests related to fks
3 years, 8 months