Hi guys,
I want to map query result to a polo object, In SDN4, I can use annotation @QueryResult .
But in SDN6, how to ?
Repository
public interface DeviceNodeRepository extends Neo4jRepository<DeviceNode, Long> {
Query("MATCH (a:DeviceNode)-[...
Hi guys,
Using SDN4, I can save nodes(using NodeEntity) and relationships( using RelationshipEntity).
When I upgraded to SDN46, I can only save nodes(using Node), How can Ioperate the relationship alone?
Hi @gerrit.meier ,
I have solved this issue of finding node.
//get DeviceNode OK
Query("MATCH (a:DeviceNode)-[r:CUSTOMER*]-(b:DeviceNode) where b.deviceId=$deviceId return (collect(a) + collect(b)) as relatedNodes")
List findRelationNode(Param("d...
gerrit.meier:
You have to use another name. The method naming pattern findBy with CustomQuery you have used would start a search for the property customQuery on the DeviceNode .
(Mostly) Everything else than findBy at the beginning of the method...
Hi guys,
And now, I can't define a custom query in DeviceNodeRepository interface. Otherwise, the following exception will be caught “ No property customQuery found for type DeviceNode!”
@Query("MATCH (a:DeviceNode)-[r:CUSTOMER*]->(b:DeviceNode) ...