From 32cc739f39c996f0cb04c5b61c2f087c59c6e968 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Wed, 21 Dec 2022 15:44:31 -0600 Subject: [PATCH] HHH-15923 - Clean-up the org.hibernate.loader package HHH-15799 - API/internal split for org.hibernate.cfg package and some minor Javadoc work --- .../annotations/AttributeAccessor.java | 8 ++--- .../BeanValidationIntegrator.java | 2 +- .../internal/ComponentPropertyHolder.java | 4 +-- .../boot/model/internal/EntityBinder.java | 6 ++-- ...plicitNamingStrategyComponentPathImpl.java | 4 +-- .../source/internal/hbm/ModelBinder.java | 6 ++-- .../internal/DefaultLoadEventListener.java | 4 +-- .../org/hibernate/id/ForeignGenerator.java | 3 +- .../org/hibernate/internal/SessionImpl.java | 20 ++++++------ .../loader/NaturalIdPostLoadListener.java | 26 ---------------- .../loader/NaturalIdPreLoadListener.java | 26 ---------------- .../NonUniqueDiscoveredSqlAliasException.java | 5 +++ .../org/hibernate/loader/PropertyPath.java | 4 +++ .../ast/internal/AbstractNaturalIdLoader.java | 14 +++------ .../internal}/CacheEntityLoaderHelper.java | 4 +-- .../ast/internal/MultiIdLoaderStandard.java | 1 - .../loader/ast/spi/EntityLoader.java | 19 ++++++++++++ .../hibernate/loader/ast/spi/MultiLoader.java | 6 +--- .../loader/ast/spi/NaturalIdLoader.java | 2 +- .../loader/ast/spi/SingleEntityLoader.java | 6 +--- .../ast/spi/SingleUniqueKeyEntityLoader.java | 2 +- .../loader/internal/AliasConstantsHelper.java | 3 +- .../BaseNaturalIdLoadAccessImpl.java | 8 +++-- .../IdentifierLoadAccessImpl.java | 11 +++---- .../LoadAccessContext.java | 6 ++-- .../NaturalIdLoadAccessImpl.java | 6 ++-- .../SimpleNaturalIdLoadAccessImpl.java | 6 ++-- .../org/hibernate/loader/package-info.java | 14 +++++++++ .../java/org/hibernate/loader/package.html | 21 ------------- .../org/hibernate/metadata/package-info.java | 4 +-- .../metamodel/model/domain/package-info.java | 4 ++- .../org/hibernate/metamodel/package-info.java | 23 ++++++++++++++ .../entity/AbstractEntityPersister.java | 7 ++--- .../property/access/package-info.java | 31 +++++++++++++++++++ .../property/access/spi/package-info.java | 17 +--------- .../entity/AbstractEntityInitializer.java | 2 +- .../metadata/IdMetadataGenerator.java | 4 +-- .../reader/AuditedPropertiesReader.java | 18 +++++------ 38 files changed, 174 insertions(+), 183 deletions(-) delete mode 100644 hibernate-core/src/main/java/org/hibernate/loader/NaturalIdPostLoadListener.java delete mode 100644 hibernate-core/src/main/java/org/hibernate/loader/NaturalIdPreLoadListener.java rename hibernate-core/src/main/java/org/hibernate/loader/{entity => ast/internal}/CacheEntityLoaderHelper.java (99%) create mode 100644 hibernate-core/src/main/java/org/hibernate/loader/ast/spi/EntityLoader.java rename hibernate-core/src/main/java/org/hibernate/loader/{access => internal}/BaseNaturalIdLoadAccessImpl.java (98%) rename hibernate-core/src/main/java/org/hibernate/loader/{access => internal}/IdentifierLoadAccessImpl.java (96%) rename hibernate-core/src/main/java/org/hibernate/loader/{access => internal}/LoadAccessContext.java (92%) rename hibernate-core/src/main/java/org/hibernate/loader/{access => internal}/NaturalIdLoadAccessImpl.java (96%) rename hibernate-core/src/main/java/org/hibernate/loader/{access => internal}/SimpleNaturalIdLoadAccessImpl.java (97%) create mode 100644 hibernate-core/src/main/java/org/hibernate/loader/package-info.java delete mode 100644 hibernate-core/src/main/java/org/hibernate/loader/package.html create mode 100644 hibernate-core/src/main/java/org/hibernate/metamodel/package-info.java create mode 100644 hibernate-core/src/main/java/org/hibernate/property/access/package-info.java diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/AttributeAccessor.java b/hibernate-core/src/main/java/org/hibernate/annotations/AttributeAccessor.java index 43f6ec0fe9..145715d106 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/AttributeAccessor.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/AttributeAccessor.java @@ -6,18 +6,18 @@ */ package org.hibernate.annotations; -import org.hibernate.property.access.spi.PropertyAccessStrategy; -import org.hibernate.binder.internal.AttributeAccessorBinder; - import java.lang.annotation.Retention; import java.lang.annotation.Target; +import org.hibernate.binder.internal.AttributeAccessorBinder; +import org.hibernate.property.access.spi.PropertyAccessStrategy; + import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** - * Names a persistent property access strategy ({@link PropertyAccessStrategy}) to use. + * Specifies an attribute {@linkplain PropertyAccessStrategy access strategy} to use. *

* Can be specified at either: