@@ -332,24 +332,25 @@ public void setType(
332
332
if ( converterDescriptor != null ) {
333
333
applyJpaConverter ( value , converterDescriptor );
334
334
}
335
-
336
- final var userTypeImpl =
337
- kind .mappingAccess .customType ( value , modelContext );
338
- if ( userTypeImpl != null ) {
339
- applyExplicitType ( userTypeImpl ,
340
- kind .mappingAccess .customTypeParameters ( value , modelContext ) );
341
- // An explicit custom UserType has top precedence when we get to BasicValue resolution.
342
- return ;
343
- }
344
- else if ( modelClassDetails != null ) {
345
- final var rawClassDetails = modelClassDetails .determineRawClass ();
346
- final var basicClass = rawClassDetails .toJavaClass ();
347
- final var registeredUserTypeImpl =
348
- getMetadataCollector ().findRegisteredUserType ( basicClass );
349
- if ( registeredUserTypeImpl != null ) {
350
- applyExplicitType ( registeredUserTypeImpl , emptyMap () );
335
+ else {
336
+ final var userTypeImpl =
337
+ kind .mappingAccess .customType ( value , modelContext );
338
+ if ( userTypeImpl != null ) {
339
+ applyExplicitType ( userTypeImpl ,
340
+ kind .mappingAccess .customTypeParameters ( value , modelContext ) );
341
+ // An explicit custom UserType has top precedence when we get to BasicValue resolution.
351
342
return ;
352
343
}
344
+ else if ( modelClassDetails != null ) {
345
+ final var rawClassDetails = modelClassDetails .determineRawClass ();
346
+ final var basicClass = rawClassDetails .toJavaClass ();
347
+ final var registeredUserTypeImpl =
348
+ getMetadataCollector ().findRegisteredUserType ( basicClass );
349
+ if ( registeredUserTypeImpl != null ) {
350
+ applyExplicitType ( registeredUserTypeImpl , emptyMap () );
351
+ return ;
352
+ }
353
+ }
353
354
}
354
355
355
356
switch ( kind ) {
0 commit comments