Skip to content

Commit b20d5e8

Browse files
committed
Moved JdbcValue
This avoids cyclic dependencies between mapping and conversion. See #1128
1 parent 47c9e72 commit b20d5e8

File tree

11 files changed

+10
-7
lines changed

11 files changed

+10
-7
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/BasicJdbcConverter.java

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.springframework.core.convert.converter.Converter;
3333
import org.springframework.data.convert.CustomConversions;
3434
import org.springframework.data.jdbc.core.mapping.AggregateReference;
35+
import org.springframework.data.jdbc.core.mapping.JdbcValue;
3536
import org.springframework.data.jdbc.support.JdbcUtil;
3637
import org.springframework.data.mapping.PersistentPropertyAccessor;
3738
import org.springframework.data.mapping.PersistentPropertyPath;

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/DefaultDataAccessStrategy.java

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.springframework.dao.OptimisticLockingFailureException;
3333
import org.springframework.data.domain.Pageable;
3434
import org.springframework.data.domain.Sort;
35+
import org.springframework.data.jdbc.core.mapping.JdbcValue;
3536
import org.springframework.data.jdbc.support.JdbcUtil;
3637
import org.springframework.data.mapping.PersistentProperty;
3738
import org.springframework.data.mapping.PersistentPropertyAccessor;

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/JdbcConverter.java

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import java.sql.ResultSet;
1919

20+
import org.springframework.data.jdbc.core.mapping.JdbcValue;
2021
import org.springframework.data.relational.core.conversion.RelationalConverter;
2122
import org.springframework.data.relational.core.mapping.PersistentPropertyPathExtension;
2223
import org.springframework.data.relational.core.mapping.RelationalPersistentEntity;

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/dialect/JdbcMySqlDialect.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.springframework.core.convert.converter.Converter;
2828
import org.springframework.data.convert.ReadingConverter;
2929
import org.springframework.data.convert.WritingConverter;
30-
import org.springframework.data.jdbc.core.convert.JdbcValue;
30+
import org.springframework.data.jdbc.core.mapping.JdbcValue;
3131
import org.springframework.data.relational.core.dialect.Db2Dialect;
3232
import org.springframework.data.relational.core.dialect.MySqlDialect;
3333
import org.springframework.data.relational.core.sql.IdentifierProcessing;

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/mapping/JdbcSimpleTypes.java

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import java.util.Set;
3232
import java.util.UUID;
3333

34-
import org.springframework.data.jdbc.core.convert.JdbcValue;
3534
import org.springframework.data.mapping.model.SimpleTypeHolder;
3635

3736
/**

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/convert/JdbcValue.java renamed to spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/mapping/JdbcValue.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.data.jdbc.core.convert;
16+
package org.springframework.data.jdbc.core.mapping;
1717

1818
import java.sql.JDBCType;
1919
import java.util.Objects;

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/QueryMapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
import org.springframework.data.domain.Sort;
2828
import org.springframework.data.jdbc.core.convert.JdbcConverter;
29-
import org.springframework.data.jdbc.core.convert.JdbcValue;
29+
import org.springframework.data.jdbc.core.mapping.JdbcValue;
3030
import org.springframework.data.mapping.PersistentPropertyAccessor;
3131
import org.springframework.data.mapping.PersistentPropertyPath;
3232
import org.springframework.data.mapping.PropertyPath;

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/StringBasedJdbcQuery.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.springframework.core.convert.converter.Converter;
2626
import org.springframework.data.jdbc.core.convert.JdbcColumnTypes;
2727
import org.springframework.data.jdbc.core.convert.JdbcConverter;
28-
import org.springframework.data.jdbc.core.convert.JdbcValue;
28+
import org.springframework.data.jdbc.core.mapping.JdbcValue;
2929
import org.springframework.data.jdbc.support.JdbcUtil;
3030
import org.springframework.data.relational.core.mapping.RelationalMappingContext;
3131
import org.springframework.data.relational.repository.query.RelationalParameterAccessor;

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/BasicJdbcConverterUnitTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.springframework.data.annotation.Id;
4040
import org.springframework.data.jdbc.core.mapping.AggregateReference;
4141
import org.springframework.data.jdbc.core.mapping.JdbcMappingContext;
42+
import org.springframework.data.jdbc.core.mapping.JdbcValue;
4243
import org.springframework.data.jdbc.support.JdbcUtil;
4344
import org.springframework.data.relational.core.mapping.RelationalPersistentEntity;
4445
import org.springframework.data.relational.core.mapping.RelationalPersistentProperty;

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcMySqlDialectUnitTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import org.junit.jupiter.api.Test;
2525
import org.springframework.data.jdbc.core.convert.JdbcCustomConversions;
26-
import org.springframework.data.jdbc.core.convert.JdbcValue;
26+
import org.springframework.data.jdbc.core.mapping.JdbcValue;
2727

2828
/**
2929
* Tests for {@link JdbcMySqlDialect}.

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryCustomConversionIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import org.springframework.data.convert.ReadingConverter;
3636
import org.springframework.data.convert.WritingConverter;
3737
import org.springframework.data.jdbc.core.convert.JdbcCustomConversions;
38-
import org.springframework.data.jdbc.core.convert.JdbcValue;
38+
import org.springframework.data.jdbc.core.mapping.JdbcValue;
3939
import org.springframework.data.jdbc.repository.support.JdbcRepositoryFactory;
4040
import org.springframework.data.jdbc.testing.AssumeFeatureTestExecutionListener;
4141
import org.springframework.data.jdbc.testing.TestConfiguration;

0 commit comments

Comments
 (0)