Skip to content

Commit b60f28b

Browse files
committed
Polishing.
1 parent 404730f commit b60f28b

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

spring-data-relational/src/main/java/org/springframework/data/relational/core/mapping/RelationalPersistentEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ default SqlIdentifier getQualifiedTableName() {
5050
* Returns the column representing the identifier.
5151
*
5252
* @return will never be {@literal null}.
53-
* @deprecated use {@code AggregatePath.getTableInfo().getIdColumnInfos()} instead.
53+
* @deprecated because an entity may have multiple id columns. Use {@code AggregatePath.getTableInfo().getIdColumnInfos()} instead.
5454
*/
5555
@Deprecated(forRemoval = true)
5656
SqlIdentifier getIdColumn();

spring-data-relational/src/main/java/org/springframework/data/relational/core/sql/TupleExpression.java

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
package org.springframework.data.relational.core.sql;
1+
/*
2+
* Copyright 2025 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
216

3-
import org.jetbrains.annotations.NotNull;
17+
package org.springframework.data.relational.core.sql;
418

519
import static java.util.stream.Collectors.*;
620

721
import java.util.List;
822

923
/**
1024
* A tuple as used in conditions like
11-
*
25+
*
1226
* <pre>
1327
* WHERE (one, two) IN (select x, y from some_table)
1428
* </pre>

spring-data-relational/src/test/java/org/springframework/data/relational/core/mapping/ColumnInfosUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 the original author or authors.
2+
* Copyright 2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-data-relational/src/test/java/org/springframework/data/relational/core/sql/TupleExpressionUnitTests.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 the original author or authors.
2+
* Copyright 2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,6 +22,11 @@
2222

2323
import org.junit.jupiter.api.Test;
2424

25+
/**
26+
* Unit tests for construction of {@link TupleExpression}.
27+
*
28+
* @author Jens Schauder
29+
*/
2530
class TupleExpressionUnitTests {
2631

2732
@Test // GH-574

0 commit comments

Comments
 (0)