Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1cd5bc8

Browse files
committed
Polishing.
Reformat code. Add author tags. See: #698 Original pull request: #708.
1 parent b67359d commit 1cd5bc8

File tree

5 files changed

+39
-13
lines changed

5 files changed

+39
-13
lines changed

‎src/main/java/org/springframework/data/r2dbc/query/QueryMapper.java‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2021 the original author or authors.
2+
* Copyright 2019-2022 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.
@@ -21,6 +21,7 @@
2121
import java.util.List;
2222
import java.util.Map;
2323
import java.util.regex.Pattern;
24+
2425
import org.springframework.data.domain.Sort;
2526
import org.springframework.data.mapping.MappingException;
2627
import org.springframework.data.mapping.PersistentPropertyPath;
@@ -55,6 +56,7 @@
5556
*
5657
* @author Mark Paluch
5758
* @author Roman Chigvintsev
59+
* @author Manousos Mathioudakis
5860
*/
5961
public class QueryMapper {
6062

@@ -757,12 +759,6 @@ private boolean isPathToJavaLangClassProperty(PropertyPath path) {
757759
return path.getType().equals(Class.class) && path.getLeafProperty().getOwningType().getType().equals(Class.class);
758760
}
759761

760-
/*
761-
* (non-Javadoc)
762-
*
763-
* @see
764-
* org.springframework.data.r2dbc.core.convert.QueryMapper.Field#getTypeHint()
765-
*/
766762
@Override
767763
public TypeInformation<?> getTypeHint() {
768764

‎src/test/java/org/springframework/data/r2dbc/repository/AbstractR2dbcRepositoryIntegrationTests.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2018-2021 the original author or authors.
2+
* Copyright 2018-2022 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.
@@ -56,6 +56,7 @@
5656
* Abstract base class for integration tests for {@link LegoSetRepository} using {@link R2dbcRepositoryFactory}.
5757
*
5858
* @author Mark Paluch
59+
* @author Manousos Mathioudakis
5960
*/
6061
public abstract class AbstractR2dbcRepositoryIntegrationTests extends R2dbcIntegrationTestSupport {
6162

@@ -444,8 +445,7 @@ public static class LegoSet extends Lego implements Buildable {
444445
this.manual = manual;
445446
}
446447

447-
@PersistenceConstructor
448-
LegoSet(Integer id, String name, Integer manual, Boolean flag) {
448+
LegoSet(Integer id, String name, Integer manual, boolean flag) {
449449
this(id, name, manual);
450450
this.flag = flag;
451451
}

‎src/test/java/org/springframework/data/r2dbc/testing/OracleTestSupport.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class OracleTestSupport {
5555
+ " id INTEGER GENERATED by default on null as IDENTITY PRIMARY KEY,\n" //
5656
+ " version INTEGER NULL,\n" //
5757
+ " name VARCHAR2(255) NOT NULL,\n" //
58-
+ " flag Boolean NULL,\n" //
58+
+ " flag Boolean NULL,\n" //
5959
+ " manual INTEGER NULL\n" //
6060
+ ")";
6161

‎src/test/java/org/springframework/data/r2dbc/testing/PostgresTestSupport.java‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021-2022 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+
*/
116
package org.springframework.data.r2dbc.testing;
217

318
import io.r2dbc.spi.ConnectionFactory;
@@ -29,7 +44,7 @@ public class PostgresTestSupport {
2944
+ " version integer NULL,\n" //
3045
+ " name varchar(255) NOT NULL,\n" //
3146
+ " manual integer NULL,\n" //
32-
+ " flag boolean NULL,\n" //
47+
+ " flag boolean NULL,\n" //
3348
+ " cert bytea NULL\n" //
3449
+ ");";
3550

‎src/test/java/org/springframework/data/r2dbc/testing/SqlServerTestSupport.java‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright 2021-2022 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+
*/
116
package org.springframework.data.r2dbc.testing;
217

318
import io.r2dbc.spi.ConnectionFactory;
@@ -28,7 +43,7 @@ public class SqlServerTestSupport {
2843
+ " id integer IDENTITY(1,1) PRIMARY KEY,\n" //
2944
+ " version integer NULL,\n" //
3045
+ " name varchar(255) NOT NULL,\n" //
31-
+ " flag bit NULL\n," //
46+
+ " flag bit NULL\n," //
3247
+ " extra varchar(255),\n" //
3348
+ " manual integer NULL\n" //
3449
+ ");";

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /