@Override public boolean supports(Class<?> delimiter) { return repositories.hasRepositoryFor(delimiter); }
@Override public boolean hasMappingFor(Class<?> type) { if (super.hasMappingFor(type)) { return true; } if (repositories.hasRepositoryFor(type)) { return true; } return false; }
@Override public boolean isMapped(PersistentProperty<?> property) { return repositories.hasRepositoryFor(property.getActualType()) && super.isMapped(property); }
@Override public boolean supports(Class<?> delimiter) { return repositories.hasRepositoryFor(delimiter); }
/** * @param targetType * @return */ private Optional<? extends ConditionalGenericConverter> getConverter(TypeDescriptor targetType) { return repositories.hasRepositoryFor(targetType.getType()) ? toEntityConverter : toIdConverter; }
public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) { if (!repositories.hasRepositoryFor(targetType.getType())) { return false; } return conversionService.canConvert(sourceType.getType(), repositories.getRepositoryInformationFor(targetType.getType()).getIdType()); }