HHH-15220 Fix typos

This commit is contained in:
Nathan Xu 2022-04-15 23:28:24 -04:00 committed by Sanne Grinovero
parent 502c6610e2
commit a2e39a1757
17 changed files with 26 additions and 26 deletions

View File

@ -28,7 +28,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* the {@code @Any} approach would be to keep that discriminator and matching value on the
* {@code Order} itself instead as part of the {@code Payment} class. Thought of another way,
* the "foreign key" is really made up of the value and discriminator. Note however that this
* composite foreign-key is a conceptual and cannot be phsical.
* composite foreign-key is a conceptual and cannot be physical.
* <ul>
* <li>Use {@link Column} or {@link Formula} to define the "column" to which the
* discriminator is mapped.

View File

@ -114,7 +114,7 @@ public abstract class AbstractSelectingDelegate implements InsertGeneratedIdenti
* Extract the generated key value from the given result set.
*
* @param session The session
* @param rs The result set containing the generated primay key values.
* @param rs The result set containing the generated primary key values.
* @param entity The entity being saved.
*
* @return The generated identifier

View File

@ -297,7 +297,7 @@ public final class ArrayHelper {
}
private static int SEED = 23;
private static int PRIME_NUMER = 37;
private static int PRIME_NUMBER = 37;
/**
* calculate the array hash (only the first level)
@ -333,7 +333,7 @@ public final class ArrayHelper {
}
private static int hash(int seed, int i) {
return PRIME_NUMER * seed + i;
return PRIME_NUMBER * seed + i;
}
public static Serializable[] extractNonNull(Serializable[] array) {

View File

@ -109,7 +109,7 @@ public interface HibernateHints {
* Hint for specifying the lock-mode to apply to the results from a
* native-query.
*
* While Hibernate supports applying lock-mode to a natove-query, the specification
* While Hibernate supports applying lock-mode to a native-query, the specification
* requires that {@link jakarta.persistence.Query#setLockMode} throw an
* {@link IllegalStateException} if called for a native query.
*

View File

@ -109,7 +109,7 @@ public class CacheEntityLoaderHelper {
* of entity hierarchies.
* <p/>
* If checkDeleted was set to true, then if the entity is found in the
* session-level cache, it's current status within the session cache
* session-level cache, its current status within the session cache
* is checked to see if it has previously been scheduled for deletion.
*
* @param event The load event

View File

@ -62,7 +62,7 @@ public class Component extends SimpleValue implements MetaAttributable, Sortable
// lazily computed based on 'properties' field: invalidate by setting to null when properties are modified
private List<Selectable> cachedSelectables;
// lazily computed based on 'properties' field: invalidate by setting to null when properties are modified
private List<Column> cachedColums;
private List<Column> cachedColumns;
public Component(MetadataBuildingContext metadata, PersistentClass owner) throws MappingException {
this( metadata, owner.getTable(), owner );
@ -127,7 +127,7 @@ public class Component extends SimpleValue implements MetaAttributable, Sortable
private void propertiesListModified() {
this.cachedSelectables = null;
this.cachedColums = null;
this.cachedColumns = null;
}
@Override
@ -170,14 +170,14 @@ public class Component extends SimpleValue implements MetaAttributable, Sortable
@Override
public List<Column> getColumns() {
if ( cachedColums != null ) {
return cachedColums;
if ( cachedColumns != null ) {
return cachedColumns;
}
else {
this.cachedColums = properties.stream()
this.cachedColumns = properties.stream()
.flatMap( p -> p.getValue().getColumns().stream() )
.collect( Collectors.toList() );
return cachedColums;
return cachedColumns;
}
}

View File

@ -436,7 +436,7 @@ public class Table implements RelationalModel, Serializable, ContributableDataba
);
if ( columnInfo == null ) {
// the column doesnt exist at all.
// the column doesn't exist at all.
StringBuilder alter = new StringBuilder( root.toString() )
.append( ' ' )
.append( column.getQuotedName( dialect ) );

View File

@ -636,7 +636,7 @@ public class MetadataContext {
// mismatch in how the annotation processor interpreted the attribute and how our metamodel
// and/or annotation binder did.
// This is particularly the case as arrays are nto handled propery by the StaticMetamodel generator
// This is particularly the case as arrays are not handled properly by the StaticMetamodel generator
// throw new AssertionFailure(
// "Illegal argument on static metamodel field injection : " + metamodelClass.getName() + '#' + name

View File

@ -169,7 +169,7 @@ public interface CollectionPersister extends Restrictable {
*/
boolean hasIndex();
/**
* Is this collection lazyily initialized?
* Is this collection lazily initialized?
*/
boolean isLazy();
/**

View File

@ -4973,7 +4973,7 @@ public abstract class AbstractEntityPersister
}
}
// clear the fields that are marked as dirty in the dirtyness tracker
// clear the fields that are marked as dirty in the dirtiness tracker
if ( entity instanceof SelfDirtinessTracker ) {
( (SelfDirtinessTracker) entity ).$$_hibernate_clearDirtyAttributes();
}

View File

@ -427,7 +427,7 @@ public class JoinedSubclassEntityPersister extends AbstractEntityPersister {
}
if ( jk != -1 ) {
throw new AssertionFailure( "Tablespan does not match height of joined-subclass hiearchy." );
throw new AssertionFailure( "Tablespan does not match height of joined-subclass hierarchy." );
}
int j = coreTableSpan;

View File

@ -95,7 +95,7 @@ public class SqmJpaCriteriaParameterWrapper<T>
* Unsupported. Visitation for a criteria parameter should be handled
* as part of {@link SemanticQueryWalker#visitJpaCriteriaParameter}. This wrapper
* is intended just for representing unique SqmParameter references for each
* JpaCriteriaParameter occurence in the SQM true as part of the {@link org.hibernate.query.QueryParameter}
* JpaCriteriaParameter occurrence in the SQM true as part of the {@link org.hibernate.query.QueryParameter}
* -> {@link SqmParameter} -> {@link JdbcParameter} transformation.
* Each occurrence requires a unique SqmParameter to make sure we ultimately get the complete
* set of JdbcParameter references

View File

@ -50,7 +50,7 @@ public class StatusTranslator {
break;
}
if ( transactionStatus == null ) {
throw new TransactionException( "TransactionManager reported transaction status as unknwon" );
throw new TransactionException( "TransactionManager reported transaction status as unknown" );
}
return transactionStatus;
}

View File

@ -63,7 +63,7 @@ public abstract class AbstractEmbeddableInitializer extends AbstractFetchParentA
private final List<DomainResultAssembler<?>> assemblers;
private final boolean usesStandardInstatiation;
private final boolean usesStandardInstantiation;
// per-row state
private final Object[] rowState;
@ -88,7 +88,7 @@ public abstract class AbstractEmbeddableInitializer extends AbstractFetchParentA
}
this.representationStrategy = representationEmbeddable.getRepresentationStrategy();
this.usesStandardInstatiation = representationStrategy.getInstantiator() instanceof StandardEmbeddableInstantiator;
this.usesStandardInstantiation = representationStrategy.getInstantiator() instanceof StandardEmbeddableInstantiator;
final int numOfAttrs = embeddableTypeDescriptor.getNumberOfAttributeMappings();
this.rowState = new Object[ numOfAttrs ];
@ -177,7 +177,7 @@ public abstract class AbstractEmbeddableInitializer extends AbstractFetchParentA
// critical in the case we have custom constructor injection. Luckily, custom instantiation
// is only allowed for non-key usage atm, so we leverage that distinction here
if ( ! usesStandardInstatiation ) {
if ( !usesStandardInstantiation ) {
// we have a custom instantiator
if ( compositeInstance != null ) {
return;

View File

@ -61,7 +61,7 @@ public interface RowProcessingState extends ExecutionContext {
void finishRowProcessing();
/**
* Locate the Initalizer registered for the given path
* Locate the Initializer registered for the given path
*/
Initializer resolveInitializer(NavigablePath path);
}

View File

@ -63,7 +63,7 @@ public class AttributeConverterTypeAdapter<T> extends AbstractSingleColumnStanda
this.attributeConverter = (JpaAttributeConverter<T, Object>) attributeConverter;
// NOTE : the way that JpaAttributeConverter get built, their "domain JTD" already
// contains the proper MutabilityPlan based on whether the `@Immuatble` is present
// contains the proper MutabilityPlan based on whether the `@Immutable` is present
if ( mutabilityPlan == null ) {
this.mutabilityPlan = (MutabilityPlan<T>) attributeConverter.getDomainJavaType().getMutabilityPlan();
}

View File

@ -27,7 +27,7 @@ import org.hibernate.type.descriptor.jdbc.JdbcTypeIndicators;
* capable of representing six centuries in nanoseconds and are
* sufficient for many applications. However, by default, we map
* Java {@link Duration} to SQL {@code numeric(21)} here, which
* can comfortably represent 60 millenia of nanos.
* can comfortably represent 60 millennia of nanos.
*
* @author Steve Ebersole
* @author Gavin King
@ -150,7 +150,7 @@ public class DurationJavaType extends AbstractClassJavaType<Duration> {
// 19+9 = 28 digits is the maximum possible Duration
// precision, but is an unnecessarily large default,
// except for cosmological applications. Thirty
// millenia in both timelike directions should be
// millennia in both timelike directions should be
// sufficient time for most businesses!
return Math.min( 21, dialect.getDefaultDecimalPrecision() );
}