|
|
|
@ -722,13 +722,10 @@ public class MappingRelationalConverter extends AbstractRelationalConverter |
|
|
|
|
|
|
|
|
|
|
|
if (getMappingContext().hasPersistentEntityFor(value.getClass())) { |
|
|
|
if (getMappingContext().hasPersistentEntityFor(value.getClass())) { |
|
|
|
|
|
|
|
|
|
|
|
RelationalPersistentEntity<?> persistentEntity = getMappingContext().getPersistentEntity(value.getClass()); |
|
|
|
RelationalPersistentEntity<?> persistentEntity = getMappingContext().getRequiredPersistentEntity(value.getClass()); |
|
|
|
|
|
|
|
|
|
|
|
if (persistentEntity != null) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object id = persistentEntity.getIdentifierAccessor(value).getIdentifier(); |
|
|
|
Object id = persistentEntity.getIdentifierAccessor(value).getIdentifier(); |
|
|
|
return writeValue(id, type); |
|
|
|
return writeValue(id, type); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return getConversionService().convert(value, type.getType()); |
|
|
|
return getConversionService().convert(value, type.getType()); |
|
|
|
|