Fix typo SqlGenerator.java

Original pull request #1987

Signed-off-by: luckygc <chenwwecm@gmail.com>

Commit message edited.
This commit is contained in:
luckygc
2025-02-11 10:36:44 +08:00
committed by Jens Schauder
parent 5d98ebe60a
commit 86aa5c1162

View File

@@ -69,7 +69,7 @@ class SqlGenerator {
/**
* Length of an aggregate path that is one longer then the root path.
*/
private static final int FIRST_NON_ROOT_LENTH = 2;
private static final int FIRST_NON_ROOT_LENGTH = 2;
private final RelationalPersistentEntity<?> entity;
private final RelationalMappingContext mappingContext;
@@ -131,7 +131,7 @@ class SqlGenerator {
* @return If the given path is considered deeply nested.
*/
private static boolean isFirstNonRoot(AggregatePath path) {
return path.getLength() == FIRST_NON_ROOT_LENTH;
return path.getLength() == FIRST_NON_ROOT_LENGTH;
}
/**
@@ -148,7 +148,7 @@ class SqlGenerator {
* @return If the given path is considered deeply nested.
*/
private static boolean isDeeplyNested(AggregatePath path) {
return path.getLength() > FIRST_NON_ROOT_LENTH;
return path.getLength() > FIRST_NON_ROOT_LENGTH;
}
/**