Skip to content

Commit 3729d76

Browse files
committed
Move Commons PropertyPath and TypeInformation types to core package.
See spring-projects/spring-data-commons#3393
1 parent 43f6003 commit 3729d76

File tree

31 files changed

+77
-35
lines changed

31 files changed

+77
-35
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
import java.sql.ResultSet;
1919
import java.sql.SQLException;
2020

21+
import org.springframework.data.core.TypeInformation;
2122
import org.springframework.data.relational.core.mapping.AggregatePath;
2223
import org.springframework.data.relational.core.mapping.RelationalPersistentEntity;
2324
import org.springframework.data.relational.domain.RowDocument;
24-
import org.springframework.data.util.TypeInformation;
2525
import org.springframework.jdbc.core.RowMapper;
2626

2727
/**

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
import java.sql.SQLType;
1919

2020
import org.jspecify.annotations.Nullable;
21+
22+
import org.springframework.data.core.TypeInformation;
2123
import org.springframework.data.jdbc.core.mapping.JdbcValue;
2224
import org.springframework.data.relational.core.conversion.RelationalConverter;
2325
import org.springframework.data.relational.core.mapping.RelationalMappingContext;
2426
import org.springframework.data.relational.core.mapping.RelationalPersistentProperty;
2527
import org.springframework.data.relational.domain.RowDocument;
26-
import org.springframework.data.util.TypeInformation;
2728

2829
/**
2930
* A {@link JdbcConverter} is responsible for converting for values to the native relational representation and vice

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
import java.util.HashMap;
2121
import java.util.Map;
2222

23+
import org.springframework.data.core.TypeInformation;
2324
import org.springframework.data.relational.core.mapping.AggregatePath;
2425
import org.springframework.data.relational.core.sql.SqlIdentifier;
2526
import org.springframework.data.relational.domain.RowDocument;
26-
import org.springframework.data.util.TypeInformation;
2727
import org.springframework.jdbc.core.RowMapper;
2828
import org.springframework.util.Assert;
2929

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@
2626
import java.util.function.Function;
2727

2828
import org.jspecify.annotations.Nullable;
29+
2930
import org.springframework.context.ApplicationContextAware;
3031
import org.springframework.core.convert.converter.Converter;
3132
import org.springframework.dao.DataAccessException;
3233
import org.springframework.data.convert.CustomConversions;
34+
import org.springframework.data.core.TypeInformation;
3335
import org.springframework.data.jdbc.core.mapping.AggregateReference;
3436
import org.springframework.data.jdbc.core.mapping.JdbcValue;
3537
import org.springframework.data.jdbc.support.JdbcUtil;
@@ -45,7 +47,6 @@
4547
import org.springframework.data.relational.core.mapping.RelationalPersistentEntity;
4648
import org.springframework.data.relational.core.mapping.RelationalPersistentProperty;
4749
import org.springframework.data.relational.domain.RowDocument;
48-
import org.springframework.data.util.TypeInformation;
4950
import org.springframework.jdbc.UncategorizedSQLException;
5051
import org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator;
5152
import org.springframework.jdbc.support.SQLExceptionSubclassTranslator;

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@
2424
import java.util.Map;
2525

2626
import org.jspecify.annotations.Nullable;
27+
28+
import org.springframework.data.core.PropertyPath;
29+
import org.springframework.data.core.PropertyReferenceException;
30+
import org.springframework.data.core.TypeInformation;
2731
import org.springframework.data.domain.Sort;
2832
import org.springframework.data.jdbc.core.mapping.JdbcValue;
2933
import org.springframework.data.jdbc.support.JdbcUtil;
3034
import org.springframework.data.mapping.PersistentPropertyAccessor;
3135
import org.springframework.data.mapping.PersistentPropertyPath;
32-
import org.springframework.data.mapping.PropertyPath;
33-
import org.springframework.data.mapping.PropertyReferenceException;
3436
import org.springframework.data.mapping.context.InvalidPersistentPropertyPath;
3537
import org.springframework.data.mapping.context.MappingContext;
3638
import org.springframework.data.relational.core.mapping.RelationalPersistentEntity;
@@ -41,7 +43,6 @@
4143
import org.springframework.data.relational.core.sql.*;
4244
import org.springframework.data.relational.domain.SqlSort;
4345
import org.springframework.data.util.Pair;
44-
import org.springframework.data.util.TypeInformation;
4546
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
4647
import org.springframework.util.Assert;
4748
import org.springframework.util.ClassUtils;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
*/
1616
package org.springframework.data.jdbc.core.mapping;
1717

18+
import org.springframework.data.core.TypeInformation;
1819
import org.springframework.data.mapping.context.MappingContext;
1920
import org.springframework.data.mapping.model.Property;
2021
import org.springframework.data.mapping.model.SimpleTypeHolder;
2122
import org.springframework.data.relational.core.mapping.NamingStrategy;
2223
import org.springframework.data.relational.core.mapping.RelationalMappingContext;
2324
import org.springframework.data.relational.core.mapping.RelationalPersistentEntity;
2425
import org.springframework.data.relational.core.mapping.RelationalPersistentProperty;
25-
import org.springframework.data.util.TypeInformation;
2626

2727
/**
2828
* {@link MappingContext} implementation for JDBC.

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/mybatis/MyBatisDataAccessStrategy.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
import org.apache.ibatis.session.SqlSession;
3030
import org.jspecify.annotations.Nullable;
3131
import org.mybatis.spring.SqlSessionTemplate;
32+
3233
import org.springframework.dao.EmptyResultDataAccessException;
34+
import org.springframework.data.core.PropertyPath;
3335
import org.springframework.data.domain.Pageable;
3436
import org.springframework.data.domain.Sort;
3537
import org.springframework.data.jdbc.core.convert.CascadingDataAccessStrategy;
@@ -43,7 +45,6 @@
4345
import org.springframework.data.jdbc.core.convert.QueryMappingConfiguration;
4446
import org.springframework.data.jdbc.core.dialect.DialectResolver;
4547
import org.springframework.data.mapping.PersistentPropertyPath;
46-
import org.springframework.data.mapping.PropertyPath;
4748
import org.springframework.data.relational.core.conversion.IdValueSource;
4849
import org.springframework.data.relational.core.dialect.Dialect;
4950
import org.springframework.data.relational.core.mapping.RelationalMappingContext;

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/aot/JdbcRepositoryContributor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.springframework.beans.factory.config.RuntimeBeanReference;
2323
import org.springframework.core.annotation.MergedAnnotation;
2424
import org.springframework.core.annotation.MergedAnnotations;
25+
import org.springframework.data.core.TypeInformation;
2526
import org.springframework.data.jdbc.core.JdbcAggregateOperations;
2627
import org.springframework.data.jdbc.core.convert.QueryMappingConfiguration;
2728
import org.springframework.data.jdbc.core.dialect.JdbcDialect;
@@ -42,7 +43,6 @@
4243
import org.springframework.data.repository.query.QueryMethod;
4344
import org.springframework.data.repository.query.ReturnedType;
4445
import org.springframework.data.repository.query.ValueExpressionDelegate;
45-
import org.springframework.data.util.TypeInformation;
4646
import org.springframework.javapoet.CodeBlock;
4747
import org.springframework.javapoet.TypeName;
4848
import org.springframework.util.ClassUtils;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
import java.util.NoSuchElementException;
2121

2222
import org.springframework.core.MethodParameter;
23+
import org.springframework.data.core.TypeInformation;
2324
import org.springframework.data.jdbc.core.convert.JdbcColumnTypes;
2425
import org.springframework.data.jdbc.support.JdbcUtil;
2526
import org.springframework.data.relational.repository.query.RelationalParameters;
2627
import org.springframework.data.repository.query.Parameter;
2728
import org.springframework.data.repository.query.ParametersSource;
2829
import org.springframework.data.util.Lazy;
29-
import org.springframework.data.util.TypeInformation;
3030
import org.springframework.util.Assert;
3131

3232
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424

2525
import org.jspecify.annotations.Nullable;
2626

27+
import org.springframework.data.core.TypeInformation;
2728
import org.springframework.data.jdbc.core.convert.JdbcColumnTypes;
2829
import org.springframework.data.jdbc.core.convert.JdbcConverter;
2930
import org.springframework.data.jdbc.core.mapping.JdbcValue;
3031
import org.springframework.data.jdbc.support.JdbcUtil;
31-
import org.springframework.data.util.TypeInformation;
3232

3333
/**
3434
* Utility to obtain {@link JdbcValue} instances for string values, collections, and arrays for string-based query

0 commit comments

Comments
 (0)