Skip to content

Commit ef398e6

Browse files
committed
"subgraph" and "subtype" are words and do not come with hyphens
1 parent 31335d6 commit ef398e6

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,7 @@ else if ( attributeSource instanceof PluralAttributeSource ) {
26552655
throw new AssertionFailure(
26562656
String.format(
26572657
Locale.ENGLISH,
2658-
"Unexpected AttributeSource sub-type [%s] as part of composite [%s]",
2658+
"Unexpected AttributeSource subtype [%s] as part of composite [%s]",
26592659
attributeSource.getClass().getName(),
26602660
attributeSource.getAttributeRole().getFullPath()
26612661
)

hibernate-core/src/main/java/org/hibernate/boot/model/source/spi/CompositeIdentifierSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.hibernate.boot.model.IdentifierGeneratorDefinition;
88

99
/**
10-
* Common contract for composite identifiers. Specific sub-types include aggregated
10+
* Common contract for composite identifiers. Specific subtypes include aggregated
1111
* (think {@link jakarta.persistence.EmbeddedId}) and non-aggregated (think
1212
* {@link jakarta.persistence.IdClass}).
1313
*

hibernate-core/src/main/java/org/hibernate/boot/model/source/spi/IdentifiableTypeSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public interface IdentifiableTypeSource extends AttributeSourceContainer {
4949
/**
5050
* Access the subtype sources for types extending from this type source,
5151
*
52-
* @return Sub-type sources
52+
* @return Subtype sources
5353
*/
5454
Collection<IdentifiableTypeSource> getSubTypes();
5555

hibernate-core/src/main/java/org/hibernate/metamodel/internal/AttributeFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ else if ( persistenceType == Type.PersistenceType.MAPPED_SUPERCLASS ) {
787787
);
788788
}
789789
else {
790-
throw new IllegalArgumentException( "Unexpected sub-type: " + persistenceType );
790+
throw new IllegalArgumentException( "Unexpected subtype: " + persistenceType );
791791
}
792792
}
793793
}

hibernate-core/src/main/java/org/hibernate/metamodel/mapping/EntityMappingType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ default void visitAttributeMappings(Consumer<? super AttributeMapping> action) {
447447
}
448448

449449
/**
450-
* Walk this type's attributes as well as its sub-type's
450+
* Walk this type's attributes as well as its subtypes
451451
*/
452452
default void visitSubTypeAttributeMappings(Consumer<? super AttributeMapping> action) {
453453
// by default do nothing

hibernate-core/src/main/java/org/hibernate/persister/entity/EntityPropertyMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private void logDuplicateRegistration(String path, Type existingType, Type type)
108108
private void logIncompatibleRegistration(String path, Type existingType, Type type) {
109109
if ( LOG.isTraceEnabled() ) {
110110
LOG.tracev(
111-
"Skipped adding attribute [{1}] to base-type [{0}] as more than one sub-type defined the attribute using incompatible types (strictly speaking the attributes are not inherited); existing type = [{2}], incoming type = [{3}]",
111+
"Skipped adding attribute [{1}] to base type [{0}] as more than one subtype defined the attribute using incompatible types (strictly speaking the attributes are not inherited); existing type = [{2}], incoming type = [{3}]",
112112
getEntityName(),
113113
path,
114114
existingType,

hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/UpdateCoordinatorStandard.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public void forceVersionIncrement(
138138
Object nextVersion,
139139
SharedSessionContractImplementor session) {
140140
if ( versionUpdateGroup == null ) {
141-
throw new HibernateException( "Cannot force version increment relative to sub-type; use the root type" );
141+
throw new HibernateException( "Cannot force version increment relative to subtype; use the root type" );
142142
}
143143
doVersionUpdate( null, id, nextVersion, currentVersion, session );
144144
}
@@ -151,7 +151,7 @@ public void forceVersionIncrement(
151151
boolean batching,
152152
SharedSessionContractImplementor session) {
153153
if ( versionUpdateGroup == null ) {
154-
throw new HibernateException( "Cannot force version increment relative to sub-type; use the root type" );
154+
throw new HibernateException( "Cannot force version increment relative to subtype; use the root type" );
155155
}
156156
doVersionUpdate( null, id, nextVersion, currentVersion, batching, session );
157157
}

hibernate-core/src/test/java/org/hibernate/orm/test/bytecode/enhancement/lazy/proxy/LazyGroupWithInheritanceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void queryEntityWithAssociationToAbstract(SessionFactoryScope scope) {
9595

9696
// todo (HHH-11147) : this is a regression from 4.x
9797
// - the condition is that the association from Order to Customer points to the non-root
98-
// entity (Customer) rather than one of its concrete sub-types (DomesticCustomer,
98+
// entity (Customer) rather than one of its concrete subtypes (DomesticCustomer,
9999
// ForeignCustomer). We'd have to read the "other table" to be able to resolve the
100100
// concrete type. The same holds true for associations to versioned entities as well.
101101
// The only viable solution I see would be to join to the "other side" and read the

hibernate-core/src/test/java/org/hibernate/orm/test/entitygraph/parser/EntityGraphParserTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ public void testLinkSubtypeParsing() {
186186

187187
assertNullOrEmpty( linkToOneNode.getKeySubgraphs() );
188188

189-
final SubGraphImplementor subGraph = linkToOneNode.getSubGraphMap().get( GraphParsingTestSubEntity.class );
190-
assertNotNull( subGraph );
189+
final SubGraphImplementor<?> subgraph = linkToOneNode.getSubGraphMap().get( GraphParsingTestSubEntity.class );
190+
assertNotNull( subgraph );
191191

192-
assertBasicAttributes( subGraph, "sub" );
192+
assertBasicAttributes( subgraph, "sub" );
193193
}
194194

195195
@Test

hibernate-core/src/test/java/org/hibernate/orm/test/fetching/GraphParsingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public void testQueryExample() {
177177

178178

179179
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180-
// Some entities for illustrating key sub-graphs
180+
// Some entities for illustrating key subgraphs
181181
//
182182
// NOTE : for the moment I do not add named (sub)graph annotations because
183183
// this is only used for discussing graph parsing

0 commit comments

Comments
 (0)