File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/main/java/org/springframework/data/jdbc/repository/config Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 33
33
* @author Greg Turnquist
34
34
* @author Jens Schauder
35
35
* @author Mark Paluch
36
+ * @author Michael Simons
36
37
*/
37
38
@ Configuration
38
39
public class JdbcConfiguration {
39
40
40
41
@ Bean
41
- protected RelationalMappingContext jdbcMappingContext (Optional <NamingStrategy > namingStrategy ,
42
- CustomConversions customConversions ) {
42
+ protected RelationalMappingContext jdbcMappingContext (Optional <NamingStrategy > namingStrategy ) {
43
43
44
44
RelationalMappingContext mappingContext = new RelationalMappingContext (
45
45
namingStrategy .orElse (NamingStrategy .INSTANCE ));
46
- mappingContext .setSimpleTypeHolder (customConversions .getSimpleTypeHolder ());
46
+ mappingContext .setSimpleTypeHolder (jdbcCustomConversions () .getSimpleTypeHolder ());
47
47
48
48
return mappingContext ;
49
49
}
50
50
51
51
@ Bean
52
- protected RelationalConverter relationalConverter (RelationalMappingContext mappingContext ,
53
- CustomConversions customConversions ) {
54
- return new BasicRelationalConverter (mappingContext , customConversions );
52
+ protected RelationalConverter relationalConverter (RelationalMappingContext mappingContext ) {
53
+ return new BasicRelationalConverter (mappingContext , jdbcCustomConversions ());
55
54
}
56
55
57
56
/**
58
57
* Register custom {@link Converter}s in a {@link CustomConversions} object if required. These
59
58
* {@link CustomConversions} will be registered with the
60
- * {@link #relationalConverter(RelationalMappingContext, CustomConversions )}. Returns an empty
59
+ * {@link #relationalConverter(RelationalMappingContext)}. Returns an empty
61
60
* {@link JdbcCustomConversions} instance by default.
62
61
*
63
62
* @return must not be {@literal null}.
You can’t perform that action at this time.
0 commit comments