[hibernate/hibernate-orm] 7aaeeb: Switch back to bag by default for list semantics
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 7aaeebe3af8344d9f49718047b0624b6fa0b8ef9
https://github.com/hibernate/hibernate-orm/commit/7aaeebe3af8344d9f497180...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-02 (Wed, 02 Mar 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/domain/collections.adoc
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
M hibernate-envers/src/test/resources/hibernate.properties
M migration-guide.adoc
Log Message:
-----------
Switch back to bag by default for list semantics
Commit: a91d23825fee54ee64edf140709781833b392825
https://github.com/hibernate/hibernate-orm/commit/a91d23825fee54ee64edf14...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-02 (Wed, 02 Mar 2022)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/ImplicitListAsListSemanticsTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/ImplicitListDefaultSemanticsTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/semantics/CustomSemanticsTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/onetomany/OneToManyBidirectionalTest.java
A hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/ImplicitListAsListProvider.java
Log Message:
-----------
Make list semantics setting explicit for failing tests
Commit: 8183901cfef837501780e3c872ffbd6e84be37e0
https://github.com/hibernate/hibernate-orm/commit/8183901cfef837501780e3c...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-02 (Wed, 02 Mar 2022)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/domain/collections.adoc
Log Message:
-----------
Add documentation notes about LIST semantics for mappedBy mappings
Commit: b6b500200bd6748b25d7eb220d6d939269069d42
https://github.com/hibernate/hibernate-orm/commit/b6b500200bd6748b25d7eb2...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-03-02 (Wed, 02 Mar 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java
Log Message:
-----------
Use BAG for unowned OneToMany and throw an error if @OrderColumn is found on unowned ManyToMany
Compare: https://github.com/hibernate/hibernate-orm/compare/4f7d4b7fdb59...b6b5002...
2 years, 9 months
[hibernate/hibernate-search] a71202: HSEARCH-4492 Remove PojoGenericTypeModel and move ...
by Yoann Rodière
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-search
Commit: a71202abcd41c368c5928e9d5624324e4b4f23ff
https://github.com/hibernate/hibernate-search/commit/a71202abcd41c368c592...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2022-03-02 (Wed, 02 Mar 2022)
Changed paths:
M mapper/javabean/src/main/java/org/hibernate/search/mapper/javabean/model/impl/JavaBeanBootstrapIntrospector.java
M mapper/orm/src/main/java/org/hibernate/search/mapper/orm/model/impl/HibernateOrmBasicDynamicMapPropertyMetadata.java
M mapper/orm/src/main/java/org/hibernate/search/mapper/orm/model/impl/HibernateOrmBasicTypeMetadataProvider.java
M mapper/orm/src/main/java/org/hibernate/search/mapper/orm/model/impl/HibernateOrmBootstrapIntrospector.java
M mapper/orm/src/main/java/org/hibernate/search/mapper/orm/model/impl/HibernateOrmDynamicMapPropertyModel.java
M mapper/orm/src/main/java/org/hibernate/search/mapper/orm/model/impl/HibernateOrmDynamicMapRawTypeModel.java
R mapper/orm/src/main/java/org/hibernate/search/mapper/orm/model/impl/HibernateOrmGenericTypeModelFactory.java
A mapper/orm/src/main/java/org/hibernate/search/mapper/orm/model/impl/HibernateOrmTypeModelFactory.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/bridge/binding/impl/DefaultIdentifierBindingContext.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/bridge/binding/impl/ValueBindingContextImpl.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/bridge/mapping/impl/BridgeResolver.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/extractor/impl/BoundContainerExtractorPath.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/extractor/impl/ContainerExtractorBinder.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/logging/impl/Log.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/mapping/building/impl/PojoIndexModelBinder.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/mapping/building/impl/PojoIndexModelBinderImpl.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/mapping/impl/PojoMappingConfigurationContextImpl.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/mapping/spi/PojoMappingConfigurationContext.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/hcann/spi/AbstractPojoHCAnnPropertyModel.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/hcann/spi/AbstractPojoHCAnnRawTypeModel.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/impl/PojoModelValueElement.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/path/impl/BoundPojoModelPathValueNode.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/spi/AbstractPojoGenericTypeModel.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/spi/GenericContextAwarePojoGenericTypeModel.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/spi/GenericContextAwarePojoPropertyModel.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/spi/PojoBootstrapIntrospector.java
R mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/spi/PojoGenericTypeModel.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/spi/PojoPropertyModel.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/spi/PojoTypeModel.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/spi/SyntheticPojoGenericTypeModel.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/AndTypePatternMatcher.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/ArrayElementTypeMatcher.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/ConstantExtractingTypePatternMatcherAdapter.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/ExactRawTypeMatcher.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/ExtractingTypePatternMatcher.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/NegatingTypePatternMatcher.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/ParameterizedTypeArgumentMatcher.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/RawSuperTypeMatcher.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/TypePatternMatcher.java
M mapper/pojo-base/src/main/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/TypePatternMatcherFactory.java
M mapper/pojo-base/src/test/java/org/hibernate/search/mapper/pojo/automaticindexing/building/impl/PojoAssociationPathInverterTest.java
M mapper/pojo-base/src/test/java/org/hibernate/search/mapper/pojo/model/typepattern/impl/TypePatternMatcherFactoryTest.java
M orm6/mapper/orm/ant-src-changes.patch
Log Message:
-----------
HSEARCH-4492 Remove PojoGenericTypeModel and move its methods to PojoTypeModel
2 years, 9 months
[hibernate/hibernate-validator] f1bce1: HV-1888 Revert annotation processor service file t...
by CoreyForsyth
Branch: refs/heads/7.0
Home: https://github.com/hibernate/hibernate-validator
Commit: f1bce1c33c842351345e01cdbb3d4501ce2973d6
https://github.com/hibernate/hibernate-validator/commit/f1bce1c33c8423513...
Author: Corey Forsyth <corey.j.forsyth(a)gmail.com>
Date: 2022-03-02 (Wed, 02 Mar 2022)
Changed paths:
R annotation-processor/src/main/resources/META-INF/services/jakarta.annotation.processing.Processor
A annotation-processor/src/main/resources/META-INF/services/javax.annotation.processing.Processor
Log Message:
-----------
HV-1888 Revert annotation processor service file to javax package
In versions >= 7, the annotation processor isn't working.
Tested in gradle and maven using this guide:
https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_si...
In versions prior to 7, the annotation works as intended in maven/gradle builds and rasies compilation errors when an annotation is improperly used. Gradle imports used:
compileOnly 'org.hibernate.validator:hibernate-validator-annotation-processor:6.2.0.Final'
annotationProcessor 'org.hibernate.validator:hibernate-validator-annotation-processor:6.2.0.Final'
implementation 'org.hibernate.validator:hibernate-validator:6.2.0.Final'
In >=7, the annotation processor doesn't run during compilation. Gradle imports used:
compileOnly 'org.hibernate.validator:hibernate-validator-annotation-processor:7.0.2.Final'
annotationProcessor 'org.hibernate.validator:hibernate-validator-annotation-processor:7.0.2.Final'
implementation 'org.hibernate.validator:hibernate-validator:7.0.2.Final'
I don't believe this is something that needs to be changed to jakarta, since javax.annotation.processing.Processor exists in the compiler, not Java EE/Jakarta EE.
2 years, 9 months
[hibernate/hibernate-validator] dc9e3e: HV-1888 Revert annotation processor service file t...
by CoreyForsyth
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-validator
Commit: dc9e3e07e736222879ba447c2552ce17ffda7469
https://github.com/hibernate/hibernate-validator/commit/dc9e3e07e73622287...
Author: Corey Forsyth <corey.j.forsyth(a)gmail.com>
Date: 2022-03-02 (Wed, 02 Mar 2022)
Changed paths:
R annotation-processor/src/main/resources/META-INF/services/jakarta.annotation.processing.Processor
A annotation-processor/src/main/resources/META-INF/services/javax.annotation.processing.Processor
Log Message:
-----------
HV-1888 Revert annotation processor service file to javax package
In versions >= 7, the annotation processor isn't working.
Tested in gradle and maven using this guide:
https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_si...
In versions prior to 7, the annotation works as intended in maven/gradle builds and rasies compilation errors when an annotation is improperly used. Gradle imports used:
compileOnly 'org.hibernate.validator:hibernate-validator-annotation-processor:6.2.0.Final'
annotationProcessor 'org.hibernate.validator:hibernate-validator-annotation-processor:6.2.0.Final'
implementation 'org.hibernate.validator:hibernate-validator:6.2.0.Final'
In >=7, the annotation processor doesn't run during compilation. Gradle imports used:
compileOnly 'org.hibernate.validator:hibernate-validator-annotation-processor:7.0.2.Final'
annotationProcessor 'org.hibernate.validator:hibernate-validator-annotation-processor:7.0.2.Final'
implementation 'org.hibernate.validator:hibernate-validator:7.0.2.Final'
I don't believe this is something that needs to be changed to jakarta, since javax.annotation.processing.Processor exists in the compiler, not Java EE/Jakarta EE.
2 years, 9 months
[hibernate/hibernate-orm] 3de279: HHH-15060 - Associations with @NotFound should alw...
by Steve Ebersole
Branch: refs/heads/5.6
Home: https://github.com/hibernate/hibernate-orm
Commit: 3de27995328e28fbf5d3959e28dabfa6ba3a2f7f
https://github.com/hibernate/hibernate-orm/commit/3de27995328e28fbf5d3959...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-03-01 (Tue, 01 Mar 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/HqlSqlWalker.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/FromElement.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/FromElementType.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/util/SessionFactoryHelper.java
M hibernate-core/src/main/java/org/hibernate/mapping/ManyToOne.java
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
- code clean-up
Commit: e46752c05b03125d616e68c5066ce2e235510e7a
https://github.com/hibernate/hibernate-orm/commit/e46752c05b03125d616e68c...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-03-01 (Tue, 01 Mar 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/DotNode.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
M hibernate-core/src/main/java/org/hibernate/type/EntityType.java
M hibernate-core/src/main/java/org/hibernate/type/ManyToOneType.java
M hibernate-core/src/main/java/org/hibernate/type/OneToOneType.java
M hibernate-core/src/test/java/org/hibernate/jpa/test/query/TypedQueryResultListTest.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/hql/ASTParserLoadingTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/HQLTest.java
Log Message:
-----------
HHH-15060 - Fix handling of associations with @NotFound
Commit: 251884ae88b2487b5a9739077915137ccdbe0205
https://github.com/hibernate/hibernate-orm/commit/251884ae88b2487b5a97390...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2022-03-01 (Tue, 01 Mar 2022)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/jpa/test/query/NotFoundAssociationQueryTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/notfound/ignore/IsNullAndNotFoundTest.java
A hibernate-core/src/test/java/org/hibernate/test/annotations/manytoone/OptionalManyToOneMapsIdQueryTest.java
A hibernate-core/src/test/java/org/hibernate/test/annotations/manytoone/OptionalManyToOnePKJCQueryTest.java
Log Message:
-----------
HHH-15060 Add additional test
Commit: 2ea04dc524b688616b1dfbd237c2560f600f70e8
https://github.com/hibernate/hibernate-orm/commit/2ea04dc524b688616b1dfbd...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-03-01 (Tue, 01 Mar 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/HqlSqlWalker.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/DotNode.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/IdentNode.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/ImpliedFromElement.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/SelectClause.java
M hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/HQLTest.java
Log Message:
-----------
HHH-15060 - Fix handling of associations with @NotFound
Compare: https://github.com/hibernate/hibernate-orm/compare/c19a825d93d7...2ea04dc...
2 years, 9 months