rsql-jpa-specification
rsql-jpa-specification copied to clipboard
Spring Boot starters should reuse ConversionService
Instead of "manually" trying to convert from String
to a target type, the library should reuse converters and application settings via an @Autowired
ConversionService
Which part do you mean? Custom value converter?
Seems to me that, with the Spring Boot starter, RSQLVisitorBase
does not use a ConversionService
from the Spring context and thus does not utilize build-in or custom converters available.
As Object to Object conversion was removed from conversionService, I think we better not to remove it from the Spring one.
Custom converters can be add via RSQLJPASupport.addConverter().
See example here