diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/Any.java b/hibernate-core/src/main/java/org/hibernate/annotations/Any.java
index ae94d7aff9..3b4de81bf1 100644
--- a/hibernate-core/src/main/java/org/hibernate/annotations/Any.java
+++ b/hibernate-core/src/main/java/org/hibernate/annotations/Any.java
@@ -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.
*
* - Use {@link Column} or {@link Formula} to define the "column" to which the
* discriminator is mapped.
diff --git a/hibernate-core/src/main/java/org/hibernate/id/insert/AbstractSelectingDelegate.java b/hibernate-core/src/main/java/org/hibernate/id/insert/AbstractSelectingDelegate.java
index d590bfe3d6..4c0dd3aeea 100644
--- a/hibernate-core/src/main/java/org/hibernate/id/insert/AbstractSelectingDelegate.java
+++ b/hibernate-core/src/main/java/org/hibernate/id/insert/AbstractSelectingDelegate.java
@@ -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
diff --git a/hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java b/hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java
index 0f88594754..5ecf262a99 100644
--- a/hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java
+++ b/hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java
@@ -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) {
diff --git a/hibernate-core/src/main/java/org/hibernate/jpa/HibernateHints.java b/hibernate-core/src/main/java/org/hibernate/jpa/HibernateHints.java
index 0099dfea55..a4c6351df6 100644
--- a/hibernate-core/src/main/java/org/hibernate/jpa/HibernateHints.java
+++ b/hibernate-core/src/main/java/org/hibernate/jpa/HibernateHints.java
@@ -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.
*
diff --git a/hibernate-core/src/main/java/org/hibernate/loader/entity/CacheEntityLoaderHelper.java b/hibernate-core/src/main/java/org/hibernate/loader/entity/CacheEntityLoaderHelper.java
index e90a43b67d..f38ac0dec7 100644
--- a/hibernate-core/src/main/java/org/hibernate/loader/entity/CacheEntityLoaderHelper.java
+++ b/hibernate-core/src/main/java/org/hibernate/loader/entity/CacheEntityLoaderHelper.java
@@ -109,7 +109,7 @@ public class CacheEntityLoaderHelper {
* of entity hierarchies.
*
* 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
diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/Component.java b/hibernate-core/src/main/java/org/hibernate/mapping/Component.java
index edbc88f85d..c4d031b5ee 100644
--- a/hibernate-core/src/main/java/org/hibernate/mapping/Component.java
+++ b/hibernate-core/src/main/java/org/hibernate/mapping/Component.java
@@ -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 cachedSelectables;
// lazily computed based on 'properties' field: invalidate by setting to null when properties are modified
- private List cachedColums;
+ private List 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 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;
}
}
diff --git a/hibernate-core/src/main/java/org/hibernate/mapping/Table.java b/hibernate-core/src/main/java/org/hibernate/mapping/Table.java
index e86e203db4..38e53a2b81 100644
--- a/hibernate-core/src/main/java/org/hibernate/mapping/Table.java
+++ b/hibernate-core/src/main/java/org/hibernate/mapping/Table.java
@@ -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 ) );
diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataContext.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataContext.java
index 788637e0d5..845bfd31e7 100644
--- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataContext.java
+++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataContext.java
@@ -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
diff --git a/hibernate-core/src/main/java/org/hibernate/persister/collection/CollectionPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/collection/CollectionPersister.java
index f57b2b7b1e..58fc832127 100644
--- a/hibernate-core/src/main/java/org/hibernate/persister/collection/CollectionPersister.java
+++ b/hibernate-core/src/main/java/org/hibernate/persister/collection/CollectionPersister.java
@@ -169,7 +169,7 @@ public interface CollectionPersister extends Restrictable {
*/
boolean hasIndex();
/**
- * Is this collection lazyily initialized?
+ * Is this collection lazily initialized?
*/
boolean isLazy();
/**
diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
index 6a0b8d244e..0f0f48edde 100644
--- a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
+++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
@@ -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();
}
diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java
index 282882c74c..f94fabc126 100644
--- a/hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java
+++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java
@@ -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;
diff --git a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmJpaCriteriaParameterWrapper.java b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmJpaCriteriaParameterWrapper.java
index 80b15e8d82..249a320b04 100644
--- a/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmJpaCriteriaParameterWrapper.java
+++ b/hibernate-core/src/main/java/org/hibernate/query/sqm/tree/expression/SqmJpaCriteriaParameterWrapper.java
@@ -95,7 +95,7 @@ public class SqmJpaCriteriaParameterWrapper
* 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
diff --git a/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/StatusTranslator.java b/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/StatusTranslator.java
index 7f53d5bef8..a0178df21f 100644
--- a/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/StatusTranslator.java
+++ b/hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/StatusTranslator.java
@@ -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;
}
diff --git a/hibernate-core/src/main/java/org/hibernate/sql/results/graph/embeddable/AbstractEmbeddableInitializer.java b/hibernate-core/src/main/java/org/hibernate/sql/results/graph/embeddable/AbstractEmbeddableInitializer.java
index 4036e6e3e5..9d8eda0bda 100644
--- a/hibernate-core/src/main/java/org/hibernate/sql/results/graph/embeddable/AbstractEmbeddableInitializer.java
+++ b/hibernate-core/src/main/java/org/hibernate/sql/results/graph/embeddable/AbstractEmbeddableInitializer.java
@@ -63,7 +63,7 @@ public abstract class AbstractEmbeddableInitializer extends AbstractFetchParentA
private final List> 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;
diff --git a/hibernate-core/src/main/java/org/hibernate/sql/results/jdbc/spi/RowProcessingState.java b/hibernate-core/src/main/java/org/hibernate/sql/results/jdbc/spi/RowProcessingState.java
index 13200de0f7..ac4a3fe00b 100644
--- a/hibernate-core/src/main/java/org/hibernate/sql/results/jdbc/spi/RowProcessingState.java
+++ b/hibernate-core/src/main/java/org/hibernate/sql/results/jdbc/spi/RowProcessingState.java
@@ -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);
}
diff --git a/hibernate-core/src/main/java/org/hibernate/type/descriptor/converter/AttributeConverterTypeAdapter.java b/hibernate-core/src/main/java/org/hibernate/type/descriptor/converter/AttributeConverterTypeAdapter.java
index 9669379fdf..aa828a9947 100644
--- a/hibernate-core/src/main/java/org/hibernate/type/descriptor/converter/AttributeConverterTypeAdapter.java
+++ b/hibernate-core/src/main/java/org/hibernate/type/descriptor/converter/AttributeConverterTypeAdapter.java
@@ -63,7 +63,7 @@ public class AttributeConverterTypeAdapter extends AbstractSingleColumnStanda
this.attributeConverter = (JpaAttributeConverter) 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) attributeConverter.getDomainJavaType().getMutabilityPlan();
}
diff --git a/hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DurationJavaType.java b/hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DurationJavaType.java
index 0931b122a5..039b847108 100644
--- a/hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DurationJavaType.java
+++ b/hibernate-core/src/main/java/org/hibernate/type/descriptor/java/DurationJavaType.java
@@ -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 {
// 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() );
}