[hibernate/hibernate-orm] b7caec: `@CollectionClassificationType`;
by Steve Ebersole
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: b7caec4b6837a3e28998ef23f8536daabfe883ea
https://github.com/hibernate/hibernate-orm/commit/b7caec4b6837a3e28998ef2...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2021-12-30 (Thu, 30 Dec 2021)
Changed paths:
A hibernate-core/src/main/java/org/hibernate/annotations/CollectionClassificationType.java
M hibernate-core/src/main/java/org/hibernate/boot/MetadataBuilder.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/OverriddenMappingDefaults.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/MappingDefaults.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
M hibernate-core/src/main/java/org/hibernate/cfg/IndexColumn.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/ListBinder.java
M hibernate-core/src/main/java/org/hibernate/collection/internal/StandardIdentifierBagSemantics.java
M hibernate-core/src/main/java/org/hibernate/collection/spi/InitializerProducerBuilder.java
M hibernate-core/src/main/java/org/hibernate/mapping/Collection.java
M hibernate-core/src/main/java/org/hibernate/metamodel/CollectionClassification.java
M hibernate-core/src/main/java/org/hibernate/metamodel/internal/PluralAttributeMetadataImpl.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/CollectionIdentifierDescriptor.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/MappingModelCreationHelper.java
M hibernate-core/src/test/java/org/hibernate/orm/test/bootstrap/spi/delegation/TestDelegatingMetadataBuilderImplementor.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/ImplicitListAsBagSemanticsTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/ImplicitListAsListSemanticsTests.java
Log Message:
-----------
`@CollectionClassificationType`;
`AvailableSettings.DEFAULT_LIST_SEMANTICS` / MappingDefaults.getImplicitListClassification`;
additional improvements to CollectionSemantics resolution handling from annotations
2 years, 12 months
[hibernate/hibernate-orm] 452f11: `@CollectionType` + better CollectionSemantics res...
by Steve Ebersole
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 452f114957f69346c444819d9487414fa983fd17
https://github.com/hibernate/hibernate-orm/commit/452f114957f69346c444819...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2021-12-30 (Thu, 30 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/annotations/CollectionType.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/ArrayBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/BagBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/CollectionBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/IdBagBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/ListBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/MapBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/PrimitiveArrayBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/SetBinder.java
M hibernate-core/src/main/java/org/hibernate/collection/internal/AbstractBagSemantics.java
M hibernate-core/src/main/java/org/hibernate/collection/internal/AbstractMapSemantics.java
M hibernate-core/src/main/java/org/hibernate/collection/internal/AbstractSetSemantics.java
M hibernate-core/src/main/java/org/hibernate/collection/internal/CustomCollectionTypeSemantics.java
M hibernate-core/src/main/java/org/hibernate/collection/internal/StandardArraySemantics.java
M hibernate-core/src/main/java/org/hibernate/collection/internal/StandardListSemantics.java
M hibernate-core/src/main/java/org/hibernate/collection/spi/CollectionSemantics.java
A hibernate-core/src/main/java/org/hibernate/collection/spi/InitializerProducerBuilder.java
M hibernate-core/src/main/java/org/hibernate/mapping/Array.java
M hibernate-core/src/main/java/org/hibernate/mapping/Bag.java
M hibernate-core/src/main/java/org/hibernate/mapping/Collection.java
M hibernate-core/src/main/java/org/hibernate/mapping/Filterable.java
M hibernate-core/src/main/java/org/hibernate/mapping/IdentifierBag.java
M hibernate-core/src/main/java/org/hibernate/mapping/IdentifierCollection.java
M hibernate-core/src/main/java/org/hibernate/mapping/IndexedCollection.java
M hibernate-core/src/main/java/org/hibernate/mapping/List.java
M hibernate-core/src/main/java/org/hibernate/mapping/Map.java
M hibernate-core/src/main/java/org/hibernate/mapping/PrimitiveArray.java
A hibernate-core/src/main/java/org/hibernate/mapping/SemanticsResolver.java
M hibernate-core/src/main/java/org/hibernate/mapping/Set.java
M hibernate-core/src/test/java/org/hibernate/orm/test/cfg/annotations/CollectionBinderTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/collections/SortAndOrderTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/Email.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/IMyList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/MyList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/MyListType.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/PersistentMyList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/User.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/UserCollectionTypeAnnotationsVariantTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/UserCollectionTypeHbmVariantTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/UserCollectionTypeTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/basic/UserPermissions.hbm.xml
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/Email.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/HeadList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/HeadListType.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/IHeadList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/PersistentHeadList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/User.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/UserCollectionTypeAnnotationsVariantTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/UserCollectionTypeHbmVariantTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/UserCollectionTypeTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/UserPermissions.hbm.xml
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/UserWithUnimplementedCollection.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/UserWithUnimplementedCollectionTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/explicitsemantics/Email.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/explicitsemantics/HeadSetList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/explicitsemantics/HeadSetListType.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/explicitsemantics/IHeadSetList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/explicitsemantics/PersistentHeadList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/explicitsemantics/User.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/declaredtype/explicitsemantics/UserCollectionTypeTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/parameterized/DefaultableList.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/parameterized/DefaultableListImpl.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/parameterized/DefaultableListType.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/parameterized/Entity.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/parameterized/Mapping.hbm.xml
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/parameterized/ParameterizedUserCollectionTypeAnnotationsVariantTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/parameterized/ParameterizedUserCollectionTypeHbmVariantTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/parameterized/ParameterizedUserCollectionTypeTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/type/collection/custom/parameterized/PersistentDefaultableList.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/Email.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/IMyList.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/MyList.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/MyListType.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/PersistentMyList.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/User.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/UserCollectionTypeAnnotationsVariantTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/UserCollectionTypeHbmVariantTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/UserCollectionTypeTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/basic/UserPermissions.hbm.xml
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/declaredtype/Email.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/declaredtype/UserCollectionTypeAnnotationsVariantTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/declaredtype/UserCollectionTypeHbmVariantTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/declaredtype/UserCollectionTypeTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/declaredtype/UserPermissions.hbm.xml
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/declaredtype/UserWithUnimplementedCollection.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/declaredtype/UserWithUnimplementedCollectionTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/declaredtype/explicitsemantics/UserCollectionTypeTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/parameterized/DefaultableList.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/parameterized/DefaultableListImpl.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/parameterized/DefaultableListType.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/parameterized/Entity.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/parameterized/Mapping.hbm.xml
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/parameterized/ParameterizedUserCollectionTypeAnnotationsVariantTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/parameterized/ParameterizedUserCollectionTypeHbmVariantTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/parameterized/ParameterizedUserCollectionTypeTest.java
R hibernate-core/src/test/java/org/hibernate/test/collection/custom/parameterized/PersistentDefaultableList.java
Log Message:
-----------
`@CollectionType` + better CollectionSemantics resolution handling from annotations;
HHH-9688 - Combination of @OrderBy and @SortComparator
HHH-9688 was simple change in the code I was working on already, so went ahead and just did it
2 years, 12 months
[hibernate/hibernate-orm] 553688: fix the javadoc of Query.getSingleResult()
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 553688ca6712ea48fc444700b4f27e97f06204c0
https://github.com/hibernate/hibernate-orm/commit/553688ca6712ea48fc44470...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-29 (Wed, 29 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/Query.java
M hibernate-core/src/main/java/org/hibernate/query/spi/AbstractQuery.java
M hibernate-core/src/test/java/org/hibernate/orm/test/exceptionhandling/ExceptionExpectations.java
M hibernate-core/src/test/java/org/hibernate/orm/test/exceptionhandling/QueryExceptionHandlingTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/jpa/query/QueryTest.java
Log Message:
-----------
fix the javadoc of Query.getSingleResult()
which incorrectly described the semantics of this method
and add tests for this stuff, since we didn't seem to have them
2 years, 12 months
[hibernate/hibernate-orm] 9fa9bc: first phase of HQL doc rewrite/restructure
by Gavin King
Branch: refs/heads/hql-doc-rework
Home: https://github.com/hibernate/hibernate-orm
Commit: 9fa9bc482ab45400206325a484378bc702ec9f63
https://github.com/hibernate/hibernate-orm/commit/9fa9bc482ab45400206325a...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-28 (Tue, 28 Dec 2021)
Changed paths:
M documentation/src/main/asciidoc/userguide/Hibernate_User_Guide.adoc
M documentation/src/main/asciidoc/userguide/chapters/query/hql/HQL.adoc
A documentation/src/main/asciidoc/userguide/chapters/query/hql/QueryLanguage.adoc
M documentation/src/main/asciidoc/userguide/chapters/query/hql/extras/statement_select_bnf.txt
M documentation/src/test/java/org/hibernate/userguide/hql/HQLTest.java
Log Message:
-----------
first phase of HQL doc rewrite/restructure
- rewrite parts of the section dealing with the Query API + execution
- split out a new chapter about the query language
2 years, 12 months
[hibernate/hibernate-orm] 8a68ee: remove wildcards from APIs in Query hierarchy
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 8a68ee49c153a0ac3b680495a187579caf9245cd
https://github.com/hibernate/hibernate-orm/commit/8a68ee49c153a0ac3b68049...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-27 (Mon, 27 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/SynchronizeableQuery.java
M hibernate-core/src/main/java/org/hibernate/procedure/ProcedureCall.java
M hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java
M hibernate-core/src/main/java/org/hibernate/query/NativeQuery.java
M hibernate-core/src/main/java/org/hibernate/query/Query.java
M hibernate-core/src/main/java/org/hibernate/query/TupleTransformer.java
M hibernate-core/src/main/java/org/hibernate/query/spi/AbstractQuery.java
M hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeQueryImpl.java
M hibernate-core/src/main/java/org/hibernate/query/sql/spi/NativeQueryImplementor.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/internal/QuerySqmImpl.java
Log Message:
-----------
remove wildcards from APIs in Query hierarchy
I hate doing this but it's necessary since Query is often
used as a raw type, and the wildcards result in additional
compiler warnings at the usage site
Also clean up some other warnings I encountered in this code
Commit: 4ea59b4961dffa3199cb845902fa7e065dd247cd
https://github.com/hibernate/hibernate-orm/commit/4ea59b4961dffa3199cb845...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-27 (Mon, 27 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/query/Query.java
M hibernate-core/src/main/java/org/hibernate/query/QueryProducer.java
Log Message:
-----------
deprecate a bunch of methods of Query + QueryProducer
Commit: ac845bca3156b587b5a85309a17f5d3cb7667a7c
https://github.com/hibernate/hibernate-orm/commit/ac845bca3156b587b5a8530...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-27 (Mon, 27 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/spi/SessionDelegatorBaseImpl.java
M hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/main/java/org/hibernate/query/QueryProducer.java
M hibernate-core/src/main/java/org/hibernate/query/spi/QueryProducerImplementor.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/query/QueryAndSQLTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/converted/converter/QueryTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/formula/FormulaNativeQueryTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/query/resultmapping/EntityResultTests.java
M hibernate-core/src/test/java/org/hibernate/test/sql/hand/query/NativeSQLQueriesTest.java
Log Message:
-----------
impl the new overload of createNativeQuery()
- and add a second new overload
- tolerate non-entity classes as arguments to these methods
- the overloads accept a result class, and return a typed Query<R>
Commit: 0bf2365955d8813711afdb67e9e0acdf297a17f0
https://github.com/hibernate/hibernate-orm/commit/0bf2365955d8813711afdb6...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-27 (Mon, 27 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/spi/SessionDelegatorBaseImpl.java
M hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/main/java/org/hibernate/query/QueryProducer.java
M hibernate-core/src/main/java/org/hibernate/query/spi/QueryProducerImplementor.java
Log Message:
-----------
fix signature of createQuery(CriteriaUpdate|CriteriaDelete)
Commit: 0b2a357670ae41aac326f99d9c8b38f825f23989
https://github.com/hibernate/hibernate-orm/commit/0b2a357670ae41aac326f99...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-27 (Mon, 27 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/main/java/org/hibernate/metamodel/MappingMetamodel.java
M hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/MappingMetamodelImpl.java
M hibernate-core/src/main/java/org/hibernate/metamodel/spi/MetamodelImplementor.java
Log Message:
-----------
add MappingMetamodel.isEntityClass() and clean up raw types
Compare: https://github.com/hibernate/hibernate-orm/compare/82aff7cd8ad6...0b2a357...
2 years, 12 months