[hibernate/hibernate-orm] 23719f: implement readonly loader feature
by Nathan Xu
Branch: refs/heads/wip/6.0
Home: https://github.com/hibernate/hibernate-orm
Commit: 23719ff481367d265bd54b22bc09e1bbf5401245
https://github.com/hibernate/hibernate-orm/commit/23719ff481367d265bd54b2...
Author: Nathan Xu <nathan.qingyang.xu(a)gmail.com>
Date: 2020-04-21 (Tue, 21 Apr 2020)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleIdEntityLoaderDynamicBatch.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleIdEntityLoaderProvidedQueryImpl.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleIdEntityLoaderStandardImpl.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleIdLoadPlan.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/internal/SingleUniqueKeyEntityLoaderStandard.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/spi/CollectionLoader.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/spi/SingleEntityLoader.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/spi/SingleIdEntityLoader.java
M hibernate-core/src/main/java/org/hibernate/loader/ast/spi/SingleUniqueKeyEntityLoader.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/query/internal/ScrollableResultsIterator.java
M hibernate-core/src/main/java/org/hibernate/query/spi/QueryOptions.java
A hibernate-core/src/main/java/org/hibernate/query/spi/QueryOptionsAdapter.java
M hibernate-core/src/main/java/org/hibernate/sql/exec/internal/JdbcSelectExecutorStandardImpl.java
A hibernate-core/src/test/java/org/hibernate/orm/test/loading/ReadonlyHintTest.java
Log Message:
-----------
implement readonly loader feature
4 years, 8 months
[hibernate/hibernate-orm] ced4f5: Various changes around how basic values are handle...
by Steve Ebersole
Branch: refs/heads/wip/6.0
Home: https://github.com/hibernate/hibernate-orm
Commit: ced4f5e602f421f2e77448a885dbc2c3d4d389ff
https://github.com/hibernate/hibernate-orm/commit/ced4f5e602f421f2e77448a...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2020-04-21 (Tue, 21 Apr 2020)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/domain/DomainModel.adoc
A documentation/src/main/asciidoc/userguide/chapters/domain/jdbc_mappings.adoc
A hibernate-core/src/main/java/org/hibernate/annotations/JavaType.java
A hibernate-core/src/main/java/org/hibernate/annotations/JavaTypeRegistration.java
A hibernate-core/src/main/java/org/hibernate/annotations/JavaTypeRegistrations.java
A hibernate-core/src/main/java/org/hibernate/annotations/MapKeyJavaType.java
A hibernate-core/src/main/java/org/hibernate/annotations/MapKeySqlType.java
A hibernate-core/src/main/java/org/hibernate/annotations/MapKeySqlTypeCode.java
A hibernate-core/src/main/java/org/hibernate/annotations/Mutability.java
A hibernate-core/src/main/java/org/hibernate/annotations/SqlType.java
A hibernate-core/src/main/java/org/hibernate/annotations/SqlTypeCode.java
A hibernate-core/src/main/java/org/hibernate/annotations/SqlTypeRegistration.java
A hibernate-core/src/main/java/org/hibernate/annotations/SqlTypeRegistrations.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/InFlightMetadataCollectorImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/model/TypeDefinition.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/EnumeratedValueResolution.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/InferredBasicValueResolution.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/InferredBasicValueResolver.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/NamedBasicTypeResolution.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/NamedConverterResolution.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/UserTypeResolution.java
A hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/VersionResolution.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/InFlightMetadataCollector.java
M hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/Ejb3Column.java
A hibernate-core/src/main/java/org/hibernate/cfg/SetBasicValueTypeSecondPass.java
R hibernate-core/src/main/java/org/hibernate/cfg/SetSimpleValueTypeSecondPass.java
A hibernate-core/src/main/java/org/hibernate/cfg/annotations/BasicValueBinder.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/PropertyBinder.java
R hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java
M hibernate-core/src/main/java/org/hibernate/dialect/AbstractHANADialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/CastFunction.java
M hibernate-core/src/main/java/org/hibernate/internal/CoreMessageLogger.java
M hibernate-core/src/main/java/org/hibernate/internal/util/collections/CollectionHelper.java
M hibernate-core/src/main/java/org/hibernate/mapping/Any.java
M hibernate-core/src/main/java/org/hibernate/mapping/BasicValue.java
M hibernate-core/src/main/java/org/hibernate/mapping/Column.java
M hibernate-core/src/main/java/org/hibernate/mapping/Component.java
A hibernate-core/src/main/java/org/hibernate/mapping/DependantBasicValue.java
M hibernate-core/src/main/java/org/hibernate/mapping/DependantValue.java
M hibernate-core/src/main/java/org/hibernate/mapping/ManyToOne.java
M hibernate-core/src/main/java/org/hibernate/mapping/OneToOne.java
M hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java
M hibernate-core/src/main/java/org/hibernate/mapping/ToOne.java
M hibernate-core/src/main/java/org/hibernate/mapping/ValueVisitor.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/BasicValuedMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/BasicValuedModelPart.java
A hibernate-core/src/main/java/org/hibernate/metamodel/mapping/ConvertibleModelPart.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/EntityDiscriminatorMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/JdbcMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractEntityDiscriminatorMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractSingularAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractStateArrayContributorMapping.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/BasicValuedSingularAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/CollectionIdentifierDescriptorImpl.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/EntityVersionMappingImpl.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/SingularAssociationAttributeMapping.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/query/CastType.java
M hibernate-core/src/main/java/org/hibernate/query/sqm/sql/BaseSqmToSqlAstConverter.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/BinaryArithmeticExpression.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/QueryLiteral.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/tree/expression/UnaryOperation.java
M hibernate-core/src/main/java/org/hibernate/sql/results/graph/basic/BasicResultAssembler.java
M hibernate-core/src/main/java/org/hibernate/type/BasicType.java
M hibernate-core/src/main/java/org/hibernate/type/BasicTypeRegistry.java
M hibernate-core/src/main/java/org/hibernate/type/BooleanType.java
M hibernate-core/src/main/java/org/hibernate/type/CharArrayType.java
M hibernate-core/src/main/java/org/hibernate/type/CharacterArrayClobType.java
M hibernate-core/src/main/java/org/hibernate/type/CharacterArrayType.java
M hibernate-core/src/main/java/org/hibernate/type/CharacterType.java
M hibernate-core/src/main/java/org/hibernate/type/ClobType.java
M hibernate-core/src/main/java/org/hibernate/type/MaterializedClobType.java
M hibernate-core/src/main/java/org/hibernate/type/PostgresUUIDType.java
M hibernate-core/src/main/java/org/hibernate/type/PrimitiveCharacterArrayClobType.java
A hibernate-core/src/main/java/org/hibernate/type/SqlTypeDescriptorIndicatorCapable.java
M hibernate-core/src/main/java/org/hibernate/type/StandardBasicTypes.java
M hibernate-core/src/main/java/org/hibernate/type/StringType.java
M hibernate-core/src/main/java/org/hibernate/type/TextType.java
M hibernate-core/src/main/java/org/hibernate/type/TrueFalseType.java
M hibernate-core/src/main/java/org/hibernate/type/YesNoType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/converter/AttributeConverterSqlTypeDescriptorAdapter.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/converter/AttributeConverterTypeAdapter.java
A hibernate-core/src/main/java/org/hibernate/type/descriptor/java/AbstractTemporalTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/BasicJavaDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/CalendarDateTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/CalendarTimeTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/CalendarTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/ClobTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DateTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DoubleTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DurationJavaDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/InstantJavaDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/JavaTypeDescriptorRegistry.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/JdbcDateTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/JdbcTimeTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/JdbcTimestampTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/LocalDateJavaDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/LocalDateTimeJavaDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/LocalTimeJavaDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/OffsetDateTimeJavaDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/OffsetTimeJavaDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/StringTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/TemporalJavaTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/UUIDTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/UrlTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/ZonedDateTimeJavaDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/spi/Primitive.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/BigIntTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/BitTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/BlobTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/BooleanTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/CharTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/ClobTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/DateTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/DecimalTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/DoubleTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/IntegerTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/LongNVarcharTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/LongVarcharTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/NCharTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/NClobTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/NVarcharTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/NumericTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/ObjectSqlTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/RealTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/SmallIntTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/SqlTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/TimeTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/TimestampTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/TimestampWithTimeZoneDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/TinyIntTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/VarbinaryTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/VarcharTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/internal/StandardBasicTypeImpl.java
M hibernate-core/src/test/java/org/hibernate/orm/test/metamodel/mapping/SmokeTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/sql/ast/SmokeTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/type/resolve/BagIdTypeResolutionTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/type/resolve/EnumResolutionTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/type/resolve/SimpleEntityTypeResolutionsTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/type/resolve/basic/java/package-info.java
A hibernate-core/src/test/java/org/hibernate/orm/test/type/resolve/basic/sql/MapKeySqlTypeTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/type/resolve/basic/sql/SqlTypeTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/type/resolve/basic/sql/package-info.java
M hibernate-core/src/test/java/org/hibernate/test/id/usertype/json/JsonSqlTypeDescriptor.java
M hibernate-testing/src/main/java/org/hibernate/testing/orm/domain/gambit/EntityOfSets.java
M migration-guide.adoc
Log Message:
-----------
Various changes around how basic values are handled in terms of mapping consumption for annotations and how value conversions happen
* Split BasicType "resolution" into 2 - one used for reading (mapping model) versus one used from writing (legacy persister model)
* @SqlTypeCode, @SqlType, @SqlTypeRegistration
* @JavaType, @JavaTypeRegistration
* @Mutability
* jdbc_mappings.adoc section for DomainModel chapter
[*] At the moment, neither @SqlTypeRegistration nor @JavaTypeRegistration support has been implemented
[*] Still need to make sure @Mutability is propogated properly in all the cases
[*] jdbc_mappings.adoc still needs a lot of attention
4 years, 8 months