You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns the longest ancestor path that has an {@link org.springframework.data.annotation.Id} property.
243
243
*
244
244
* @return A path that starts just as this path but is shorter. Guaranteed to be not {@literal null}. TODO: throws
245
-
* NoSuchElementException: No value present for empty paths
245
+
* NoSuchElementException: No value present for empty paths
246
246
*/
247
247
AggregatePathgetIdDefiningParentPath();
248
248
249
+
/**
250
+
* The path resulting from removing the first element of the {@link AggregatePath}.
251
+
*
252
+
* @return {@literal null} for any {@link AggregatePath} having less than two elements.
253
+
* @since 3.5.0
254
+
*/
249
255
@Nullable
250
256
AggregatePathgetTail();
251
257
258
+
/**
259
+
* Information about a table underlying an entity.
260
+
*
261
+
* @param qualifiedTableName the fully qualified name of the table this path is tied to or of the longest ancestor path that is actually
262
+
* tied to a table. Must not be {@literal null}.
263
+
* @param tableAlias the alias used for the table on which this path is based. May be {@literal null}.
264
+
* @param backReferenceColumnInfos information about the columns used to reference back to the owning entity. Must not be {@literal null}. Since 3.5.
265
+
* @param qualifierColumnInfo the column used for the list index or map key of the leaf property of this path. May be {@literal null}.
266
+
* @param qualifierColumnType the type of the qualifier column of the leaf property of this path or {@literal null} if this is not applicable. May be {@literal null}.
267
+
* @param idColumnInfos the column name of the id column of the ancestor path that represents an actual table. Must not be {@literal null}.
268
+
*/
252
269
recordTableInfo(
253
-
254
-
/*
255
-
* The fully qualified name of the table this path is tied to or of the longest ancestor path that is actually
256
-
* tied to a table.
257
-
*/
258
270
SqlIdentifierqualifiedTableName,
259
-
260
-
/*
261
-
* The alias used for the table on which this path is based.
262
-
*/
263
271
@NullableSqlIdentifiertableAlias,
264
-
265
-
ColumnInfosreverseColumnInfos,
266
-
267
-
/*
268
-
* The column used for the list index or map key of the leaf property of this path.
269
-
*/
272
+
ColumnInfosbackReferenceColumnInfos,
270
273
@NullableColumnInfoqualifierColumnInfo,
271
-
272
-
/*
273
-
* The type of the qualifier column of the leaf property of this path or {@literal null} if this is not
274
-
* applicable.
275
-
*/
276
274
@NullableClass<?> qualifierColumnType,
277
-
278
-
/*
279
-
* The column name of the id column of the ancestor path that represents an actual table.
* @return a {@literal ColumnInfos} instance containing all the added {@link ColumnInfo} instances.
652
647
*/
653
648
ColumnInfosbuild() {
@@ -658,6 +653,7 @@ ColumnInfos build() {
658
653
659
654
/**
660
655
* Subtract the {@literal basePath} from {@literal this} {@literal AggregatePath} by removing the {@literal basePath} from the beginning of {@literal this}.
656
+
*
661
657
* @param basePath the path to be removed.
662
658
* @return an AggregatePath that ends like the original {@literal AggregatePath} but has {@literal basePath} removed from the beginning.
Copy file name to clipboardExpand all lines: spring-data-relational/src/main/java/org/springframework/data/relational/core/sqlgeneration/SingleQuerySqlGenerator.java
Copy file name to clipboardExpand all lines: spring-data-relational/src/test/java/org/springframework/data/relational/core/mapping/DefaultAggregatePathUnitTests.java
0 commit comments