org.springframework.data.repository.support.DomainClassConverter Java Examples
The following examples show how to use
org.springframework.data.repository.support.DomainClassConverter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebConfiguration.java From java-platform with Apache License 2.0 | 5 votes |
@Override public void addFormatters(FormatterRegistry registry) { registry.addFormatter(DistanceFormatter.INSTANCE); registry.addFormatter(PointFormatter.INSTANCE); if (!(registry instanceof FormattingConversionService)) { return; } FormattingConversionService conversionService = (FormattingConversionService) registry; DomainClassConverter<FormattingConversionService> converter = new DomainClassConverter<FormattingConversionService>(conversionService); converter.setApplicationContext(context); }
Example #2
Source File: JandyApplicationServer.java From jandy with GNU General Public License v3.0 | 4 votes |
@Bean @ConditionalOnBean(ConversionService.class) public DomainClassConverter domainClassConverter(ConversionService conversionService) { return new DomainClassConverter(conversionService); }