[hibernate/hibernate-orm] 640bd8: HHH-11452 Extended audit query API to specify the ...
by Chris Cranford
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 640bd85975571fb3bbde5c6ec598f3f56c4c308f
https://github.com/hibernate/hibernate-orm/commit/640bd85975571fb3bbde5c6...
Author: Felix Feisst <feisst.felix(a)gmail.com>
Date: 2021-12-16 (Thu, 16 Dec 2021)
Changed paths:
M hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/Parameters.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/AuditEntity.java
A hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditProperty.java
A hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/FunctionFunctionAuditExpression.java
A hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/FunctionPropertyAuditExpression.java
A hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/PropertyFunctionAuditExpression.java
A hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/SimpleFunctionAuditExpression.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/internal/impl/AbstractAuditQuery.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/internal/impl/AuditAssociationQueryImpl.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/projection/AuditProjection.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/projection/internal/EntityAuditProjection.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/projection/internal/PropertyAuditProjection.java
A hibernate-envers/src/test/java/org/hibernate/envers/test/integration/query/AuditFunctionQueryTest.java
Log Message:
-----------
HHH-11452 Extended audit query API to specify the use of scalar
functions.
Commit: e50037ec8c6e3570c8167ba6d0c7ea29ef762b3c
https://github.com/hibernate/hibernate-orm/commit/e50037ec8c6e3570c8167ba...
Author: Felix Feisst <feisst(a)patronas.com>
Date: 2021-12-16 (Thu, 16 Dec 2021)
Changed paths:
M hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/Parameters.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/AuditFunction.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/FunctionFunctionAuditExpression.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/FunctionPropertyAuditExpression.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/PropertyFunctionAuditExpression.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/SimpleFunctionAuditExpression.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/query/AuditFunctionQueryTest.java
Log Message:
-----------
HHH-11452 Added possibility to apply the like operator on a function criterion. Added possibility to use the id of an entity as function argument.
Commit: 057b9bfc04ca115898a3b4bac0ee896c7f3dfeae
https://github.com/hibernate/hibernate-orm/commit/057b9bfc04ca115898a3b4b...
Author: Chris Cranford <chris(a)hibernate.org>
Date: 2021-12-16 (Thu, 16 Dec 2021)
Changed paths:
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/query/AuditFunctionQueryTest.java
Log Message:
-----------
HHH-11452 Fix test failures
Compare: https://github.com/hibernate/hibernate-orm/compare/bb092221028a...057b9bf...
3 years
[hibernate/hibernate-orm] bb0922: HHH-11735 Support traversal of to-many-association...
by Chris Cranford
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: bb092221028ac4fdd98d18519c7b4627699d7e6b
https://github.com/hibernate/hibernate-orm/commit/bb092221028ac4fdd98d185...
Author: Felix Feisst <feisst(a)patronas.com>
Date: 2021-12-16 (Thu, 16 Dec 2021)
Changed paths:
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/MiddleTableCollectionMetadataGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/EntityConfiguration.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/RelationDescription.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/CriteriaTools.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/NotNullAuditExpression.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/NullAuditExpression.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/RelatedAuditEqualityExpression.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/RelatedAuditInExpression.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/criteria/internal/SimpleAuditExpression.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/internal/impl/AuditAssociationQueryImpl.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/dynamic/AuditedDynamicComponentsAdvancedCasesTest.java
M hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/components/dynamic/SanityCheckTest.java
A hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/query/AssociationToManyJoinQueryTest.java
A hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/query/AssociationToNotAuditedManyJoinQueryTest.java
Log Message:
-----------
HHH-11735 Support traversal of to-many-associations in audit queries.
3 years
[hibernate/hibernate-orm] b384b3: HHH-8051 Gracefully handle not-found to-one associ...
by Chris Cranford
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: b384b37f395f14f5e64c6b6d4d00e0868d62fe01
https://github.com/hibernate/hibernate-orm/commit/b384b37f395f14f5e64c6b6...
Author: Chris Cranford <chris(a)hibernate.org>
Date: 2021-12-16 (Thu, 16 Dec 2021)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/envers/Envers.adoc
M hibernate-envers/src/main/java/org/hibernate/envers/Audited.java
A hibernate-envers/src/main/java/org/hibernate/envers/RelationTargetNotFoundAction.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/Configuration.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/EnversSettings.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/ClassesAuditingData.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/ToOneRelationMetadataGenerator.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/PropertyAuditingData.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/ToOneIdMapper.java
A hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/basic/RelationTargetNotFoundConfigTest.java
A hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/basic/RelationTargetNotFoundLegacyTest.java
A hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/basic/RelationTargetNotFoundTest.java
Log Message:
-----------
HHH-8051 Gracefully handle not-found to-one associations
3 years
[hibernate/hibernate-orm] 579b3f: HHH-14977 - @Where is broken in 6.0
by Steve Ebersole
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 579b3f0dcb943b768bd263dfb568ba7e18da340d
https://github.com/hibernate/hibernate-orm/commit/579b3f0dcb943b768bd263d...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2021-12-15 (Wed, 15 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/FilterHelper.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/LoaderSelectBuilder.java
M hibernate-core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/Joinable.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java
A hibernate-core/src/main/java/org/hibernate/persister/internal/WhereFilterPredicate.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/SqlAstWalker.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/AbstractSqlAstWalker.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/AggregateFunctionChecker.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/where/DiscriminatorWhereTest.java
Log Message:
-----------
HHH-14977 - @Where is broken in 6.0
Next iteration where `@Where` fragments generate AST one or more `WhereFilterPredicate` instances.
At the moment, `@Filter` fragments are collected together using the existing String-manipulation style and still collected into a single `FilterPredicate`. Next step is to make that more AST-centric and hopefully get rid of the String-manip-based methods
3 years