@@ -80,7 +80,7 @@ public class MappingJdbcConverter extends MappingRelationalConverter implements
80
80
* {@link #MappingJdbcConverter(RelationalMappingContext, RelationResolver, CustomConversions, JdbcTypeFactory)}
81
81
* (MappingContext, RelationResolver, JdbcTypeFactory)} to convert arrays and large objects into JDBC-specific types.
82
82
*
83
- * @param context must not be {@literal null}.
83
+ * @param context must not be {@literal null}.
84
84
* @param relationResolver used to fetch additional relations from the database. Must not be {@literal null}.
85
85
*/
86
86
public MappingJdbcConverter (RelationalMappingContext context , RelationResolver relationResolver ) {
@@ -98,12 +98,12 @@ public MappingJdbcConverter(RelationalMappingContext context, RelationResolver r
98
98
/**
99
99
* Creates a new {@link MappingJdbcConverter} given {@link MappingContext}.
100
100
*
101
- * @param context must not be {@literal null}.
101
+ * @param context must not be {@literal null}.
102
102
* @param relationResolver used to fetch additional relations from the database. Must not be {@literal null}.
103
- * @param typeFactory must not be {@literal null}
103
+ * @param typeFactory must not be {@literal null}
104
104
*/
105
105
public MappingJdbcConverter (RelationalMappingContext context , RelationResolver relationResolver ,
106
- CustomConversions conversions , JdbcTypeFactory typeFactory ) {
106
+ CustomConversions conversions , JdbcTypeFactory typeFactory ) {
107
107
108
108
super (context , conversions );
109
109
@@ -258,18 +258,18 @@ public JdbcValue writeJdbcValue(@Nullable Object value, TypeInformation<?> colum
258
258
259
259
if (convertedValue .getClass ().isArray ()) {
260
260
261
- if (componentType != byte .class && componentType != Byte .class ) {
261
+ if (componentType != byte .class && componentType != Byte .class ) {
262
262
263
- Object [] objectArray = requireObjectArray (convertedValue );
264
- return JdbcValue .of (typeFactory .createArray (objectArray ), JDBCType .ARRAY );
265
- }
263
+ Object [] objectArray = requireObjectArray (convertedValue );
264
+ return JdbcValue .of (typeFactory .createArray (objectArray ), JDBCType .ARRAY );
265
+ }
266
266
267
- if (componentType == Byte .class ) {
268
- convertedValue = ArrayUtils .toPrimitive ((Byte []) convertedValue );
269
- }
267
+ if (componentType == Byte .class ) {
268
+ convertedValue = ArrayUtils .toPrimitive ((Byte []) convertedValue );
269
+ }
270
270
271
- return JdbcValue .of (convertedValue , JDBCType .BINARY );
272
- }
271
+ return JdbcValue .of (convertedValue , JDBCType .BINARY );
272
+ }
273
273
274
274
return JdbcValue .of (convertedValue , sqlType );
275
275
}
@@ -306,7 +306,7 @@ public <R> R readAndResolve(TypeInformation<R> type, RowDocument source, Identif
306
306
307
307
@ Override
308
308
protected RelationalPropertyValueProvider newValueProvider (RowDocumentAccessor documentAccessor ,
309
- ValueExpressionEvaluator evaluator , ConversionContext context ) {
309
+ ValueExpressionEvaluator evaluator , ConversionContext context ) {
310
310
311
311
if (context instanceof ResolvingConversionContext rcc ) {
312
312
@@ -335,7 +335,7 @@ class ResolvingRelationalPropertyValueProvider implements RelationalPropertyValu
335
335
private final Identifier identifier ;
336
336
337
337
private ResolvingRelationalPropertyValueProvider (AggregatePathValueProvider delegate , RowDocumentAccessor accessor ,
338
- ResolvingConversionContext context , Identifier identifier ) {
338
+ ResolvingConversionContext context , Identifier identifier ) {
339
339
340
340
AggregatePath path = context .aggregatePath ();
341
341
@@ -344,15 +344,15 @@ private ResolvingRelationalPropertyValueProvider(AggregatePathValueProvider dele
344
344
this .context = context ;
345
345
this .identifier = path .isEntity ()
346
346
? potentiallyAppendIdentifier (identifier , path .getRequiredLeafEntity (),
347
- property -> delegate .getValue (path .append (property )))
347
+ property -> delegate .getValue (path .append (property )))
348
348
: identifier ;
349
349
}
350
350
351
351
/**
352
352
* Conditionally append the identifier if the entity has an identifier property.
353
353
*/
354
354
static Identifier potentiallyAppendIdentifier (Identifier base , RelationalPersistentEntity <?> entity ,
355
- Function <RelationalPersistentProperty , Object > getter ) {
355
+ Function <RelationalPersistentProperty , Object > getter ) {
356
356
357
357
if (entity .hasIdProperty ()) {
358
358
@@ -481,7 +481,7 @@ public RelationalPropertyValueProvider withContext(ConversionContext context) {
481
481
482
482
return context == this .context ? this
483
483
: new ResolvingRelationalPropertyValueProvider (delegate .withContext (context ), accessor ,
484
- (ResolvingConversionContext ) context , identifier );
484
+ (ResolvingConversionContext ) context , identifier );
485
485
}
486
486
}
487
487
@@ -493,7 +493,7 @@ public RelationalPropertyValueProvider withContext(ConversionContext context) {
493
493
* @param identifier
494
494
*/
495
495
private record ResolvingConversionContext (ConversionContext delegate , AggregatePath aggregatePath ,
496
- Identifier identifier ) implements ConversionContext {
496
+ Identifier identifier ) implements ConversionContext {
497
497
498
498
@ Override
499
499
public <S > S convert (Object source , TypeInformation <? extends S > typeHint ) {
0 commit comments