java - querying and converting a neo4j query result to multi dimensional @QueryResult object -
I have a @QueryResult interface, which makes himself a way that gives a list of similar items . I wonder if a neo4j query replaces the result as a proxy object that implements this domain interface?
The domain interface, which I tried and tested, which does not work:
@QueryResult public interface Test {@ ResultColumn ( "id") public String GetId (); @ ResultColumn ("name") public string getName (); @ ResultColumn ("test"); Java.util.Collection & LT; Test & gt; GetTests (); I've used neo4Template # query (string, map) to downconvert the proxy object that implements the interface
MATCH ( N: labeled {ID: {ID}) with n MATCH (N) - [: contains it] - & gt; N, with the name of S., the name of the name as the name of the test return N name, as the collection ({id: s.id, name: s.name})., NID as ID, test However, I found this exception: The result of a column is found on the string name. At
org.springframework.data.neo4j.support.conversion.ResultColumnValueExtractor.extractFromAccessibleObject (org.springframework.data.neo4j.support.conversion.ResultColumnValueExtractor.extractFromMethod) ResultColumnValueExtractor.java:56) At org.springframework.data.neo4j.support.conversion.QueryResultProxy.invoke (QueryResultProxy.java:54) at com.sun.proxy. java.lang.StringBuilder.append (StringBuilder.java at $ Proxy173.toString (Unknown Source) org.neo4j.helpers.collection.IteratorUtil.Single (IteratorUtil.java:338) on Org.neo4j.helpers on java.lang.String 128) on .valueOf (Stringkjawa Month 854) collection.IteratorUtil on Org.springframework.data.neo4j.conversion.QueryResultBuilder.singleOrNull (org.neo4j.helpers.collection.IteratorUtil.SingleOrNull (IteratorUtil.java, 200286). singleOrNull (IteratorUtil.java:128) (QueryResultBuilder.java: 71) does anyone even possible to know if we achieved it thanks to iNG spring data neo4j? help
Comments
Post a Comment