Markus,
As you said, this should work, as documented in http://static.springsource.org/sprin...e/html/#d5e825.
However, currently you can only convert to String and back (see https://jira.springsource.org/browse/DATAGRAPH-286). And also you have to manually register your converter, something like:
Code:
@Configuration
@EnableNeo4jRepositories
static class TestConfig extends Neo4jConfiguration {
@Bean
GraphDatabaseService graphDatabaseService() {
return new ImpermanentGraphDatabase();
}
@Bean
protected ConversionService neo4jConversionService() throws Exception {
ConversionService conversionService = super.neo4jConversionService();
conversionService.addConverter(new MyAwesomeConverter());
conversionService.addConverter(new MyAwesomeReverseConverter());
return conversionService;
}
}
However, monitor the jira ticket for updates.