Hi,
I dunno if this is a bug, or it is intended to be so, but when I pass some parameter into query method that has custom class-to-String conversion registered, the query method does not convert the value to String.
Concretely, I use:
And I have Joda DateTime-to-String converters registered through ConversionService. Mapping to entity fields works fine with these converters (unfortunately not to Long values, only String, but I already registered that bug).Code:neo4jTemplate.query(cypherQueryString, queryParametersMap)
Anyway, when I put something like this inside my query parameters map:
the query return no result, which is not correct.Code:queryParametersMap.put("time", new DateTime());
But when I call conversion manually, like:
then the query returns the result.Code:queryParametersMap.put("time", neo4jTemplate.convert(new DateTime(), String.class));
It's as if query method ignores the registered custom conversion for query parameters.
Is this a bug?
-Vjeran


Reply With Quote