Polishing.

Reformat code. Add author tags.

See: #698
Original pull request: #708.
This commit is contained in:
Mark Paluch
2022-01-17 10:54:20 +01:00
parent 403ae5803f
commit bc861e6864
5 changed files with 39 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2019-2021 the original author or authors.
* Copyright 2019-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import org.springframework.data.domain.Sort;
import org.springframework.data.mapping.MappingException;
import org.springframework.data.mapping.PersistentPropertyPath;
@@ -55,6 +56,7 @@ import org.springframework.util.ClassUtils;
*
* @author Mark Paluch
* @author Roman Chigvintsev
* @author Manousos Mathioudakis
*/
public class QueryMapper {
@@ -757,12 +759,6 @@ public class QueryMapper {
return path.getType().equals(Class.class) && path.getLeafProperty().getOwningType().getType().equals(Class.class);
}
/*
* (non-Javadoc)
*
* @see
* org.springframework.data.r2dbc.core.convert.QueryMapper.Field#getTypeHint()
*/
@Override
public TypeInformation<?> getTypeHint() {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018-2021 the original author or authors.
* Copyright 2018-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -56,6 +56,7 @@ import org.springframework.transaction.reactive.TransactionalOperator;
* Abstract base class for integration tests for {@link LegoSetRepository} using {@link R2dbcRepositoryFactory}.
*
* @author Mark Paluch
* @author Manousos Mathioudakis
*/
public abstract class AbstractR2dbcRepositoryIntegrationTests extends R2dbcIntegrationTestSupport {
@@ -444,8 +445,7 @@ public abstract class AbstractR2dbcRepositoryIntegrationTests extends R2dbcInteg
this.manual = manual;
}
@PersistenceConstructor
LegoSet(Integer id, String name, Integer manual, Boolean flag) {
LegoSet(Integer id, String name, Integer manual, boolean flag) {
this(id, name, manual);
this.flag = flag;
}

View File

@@ -55,7 +55,7 @@ public class OracleTestSupport {
+ " id INTEGER GENERATED by default on null as IDENTITY PRIMARY KEY,\n" //
+ " version INTEGER NULL,\n" //
+ " name VARCHAR2(255) NOT NULL,\n" //
+ " flag Boolean NULL,\n" //
+ " flag Boolean NULL,\n" //
+ " manual INTEGER NULL\n" //
+ ")";

View File

@@ -1,3 +1,18 @@
/*
* Copyright 2021-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.r2dbc.testing;
import io.r2dbc.spi.ConnectionFactory;
@@ -29,7 +44,7 @@ public class PostgresTestSupport {
+ " version integer NULL,\n" //
+ " name varchar(255) NOT NULL,\n" //
+ " manual integer NULL,\n" //
+ " flag boolean NULL,\n" //
+ " flag boolean NULL,\n" //
+ " cert bytea NULL\n" //
+ ");";

View File

@@ -1,3 +1,18 @@
/*
* Copyright 2021-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.r2dbc.testing;
import io.r2dbc.spi.ConnectionFactory;
@@ -28,7 +43,7 @@ public class SqlServerTestSupport {
+ " id integer IDENTITY(1,1) PRIMARY KEY,\n" //
+ " version integer NULL,\n" //
+ " name varchar(255) NOT NULL,\n" //
+ " flag bit NULL\n," //
+ " flag bit NULL\n," //
+ " extra varchar(255),\n" //
+ " manual integer NULL\n" //
+ ");";