I'm trying to send a mapped Neo4j query result object (a @MapResult Interface, proxied by QueryResultProxy) over to another JVM using Spring Remoting. Seems the QueryResultProxy object graph is not Serializable. I'm not really sure how the QueryResultProxy works - but I think Spring AOP proxies are serializable. Should the QueryResultProxy be Serializable?
QueryResultProxy is only a Java Dynamic Proxy b/c we wanted to make it work with non AOP setups too, but we want to add support for projecting into real classes too, so you can easily transport them over the wire
Michael - Thanks for the reply. That would be great. The @MappedResult is a powerful feature and it would be nice to have the implementation serializable. Neo4j is an exciting technology. Glad there is such rich support for it in Spring Data
not yet, don't know if we can make it in the next release (2.2.0) I try to but cannot promise. Have to think about if it should align with @NodeEntity mappings with persistence constructor support or a separate feature (just plain DTOs mapped to cypher query results)
Michael Andrews opened DATAGRAPH-311 and commented
I'm trying to send a mapped Neo4j query result object (a
@MapResult
Interface, proxied by QueryResultProxy) over to another JVM using Spring Remoting. Seems the QueryResultProxy object graph is not Serializable. I'm not really sure how the QueryResultProxy works - but I think Spring AOP proxies are serializable. Should the QueryResultProxy be Serializable?Affects: 2.1
Referenced from: commits d1a2892, bf60ad3, 764611c, 8bb6313, bc5a271
The text was updated successfully, but these errors were encountered: