Before attempting to use scala, I was succesfully perform CRUD using 
spring-data-neo4j, there i was able to use the @NodeEntity annotation, and 
insert them as mapped object. Basically the GraphRepository interface 
allows me to do so, I wonder if AnormCypher has that kind of feature as 
well and now I'm currently using scala anormcypher, and I was able to 
insert the nodes via Cypher(insertQuery).execute()), but when I try to get 
them and map them to a model that I have created, I get this error. I 
wonder what went wrong...
this is how I try to iterate over the results. 

var rsMap = Cypher("start n=node(*) return n.name as name, n")().map {
     case CypherRow(name: String, n: org.anormcypher.NeoNode) => name -> n
}


scala.MatchError: CypherResultRow('n':Map(paged_traverse -> 
http://127.0.0.1:7474/db/data/node/81928/paged/traverse/{returnType}{?pageSize,leaseTime},
 
all_relationships -> 
http://127.0.0.1:7474/db/data/node/81928/relationships/all, 
outgoing_typed_relationships -> 
http://127.0.0.1:7474/db/data/node/81928/relationships/out/{-list|&|types}, 
data -> Map(name -> Kenji, location -> Venice), self -> 
http://127.0.0.1:7474/db/data/node/81928, outgoing_relationships -> 
http://127.0.0.1:7474/db/data/node/81928/relationships/out, 
create_relationship -> 
http://127.0.0.1:7474/db/data/node/81928/relationships, extensions -> 
Map(), properties -> http://127.0.0.1:7474/db/data/node/81928/properties, 
incoming_relationships -> 
http://127.0.0.1:7474/db/data/node/81928/relationships/in, labels -> 
http://127.0.0.1:7474/db/data/node/81928/labels, traverse -> 
http://127.0.0.1:7474/db/data/node/81928/traverse/{returnType}, 
incoming_typed_relationships -> 
http://127.0.0.1:7474/db/data/node/81928/relationships/in/{-list|&|types}, 
metadata -> Map(id -> 81928, labels -> ListBuffer(Student)), property -> 
http://127.0.0.1:7474/db/data/node/81928/properties/{key}, 
all_typed_relationships -> 
http://127.0.0.1:7474/db/data/node/81928/relationships/all/{-list|&|types}) 
as String) (of class org.anormcypher.CypherResultRow)
    at handler.DataHandler$$anonfun$7.apply(DataHandler.scala:162) ~[classes
/:na]
    at handler.DataHandler$$anonfun$7.apply(DataHandler.scala:162) ~[classes
/:na]
    at scala.collection.immutable.Stream.map(Stream.scala:418) ~[scala-
library-2.11.8.jar:na]
    at handler.DataHandler.getTest(DataHandler.scala:162) ~[classes/:na]
    at service.DataService.getUserById(DataService.scala:66) ~[classes/:na]
    at controllers.Application$$anonfun$getUserFromNeo4j$1.apply(Application
.scala:37) ~[classes/:na]
    at controllers.Application$$anonfun$getUserFromNeo4j$1.apply(Application
.scala:36) ~[classes/:na]
    at play.api.mvc.ActionBuilder$$anonfun$apply$16.apply(Action.scala:408) 
~[play_2.11-2.4.6.jar:2.4.6]
    at play.api.mvc.ActionBuilder$$anonfun$apply$16.apply(Action.scala:407) 
~[play_2.11-2.4.6.jar:2.4.6]
    at play.api.mvc.Action$.invokeBlock(Action.scala:533) ~[play_2.11-2.4.
6.jar:2.4.6]
    at play.api.mvc.Action$.invokeBlock(Action.scala:530) ~[play_2.11-2.4.
6.jar:2.4.6]
    at play.api.mvc.ActionBuilder$$anon$1.apply(Action.scala:493) ~[play_2.
11-2.4.6.jar:2.4.6]
    at play.api.mvc.
Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala
:105) ~[play_2.11-2.4.6.jar:2.4.6]
    at play.api.mvc.
Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$5.apply(Action.scala
:105) ~[play_2.11-2.4.6.jar:2.4.6]
    at play.utils.Threads$.withContextClassLoader(Threads.scala:21) ~[play_2
.11-2.4.6.jar:2.4.6]
    at play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.
scala:104) ~[play_2.11-2.4.6.jar:2.4.6]
    at play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.
scala:103) ~[play_2.11-2.4.6.jar:2.4.6]
    at scala.Option.map(Option.scala:146) ~[scala-library-2.11.8.jar:na]
    at play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:103) ~[play_2
.11-2.4.6.jar:2.4.6]
    at play.api.mvc.Action$$anonfun$apply$1.apply(Action.scala:96) ~[play_2.
11-2.4.6.jar:2.4.6]
    at play.api.libs.iteratee.DoneIteratee$$anonfun$mapM$2.apply(Iteratee.
scala:741) ~[play-iteratees_2.11-2.4.6.jar:2.4.6]
    at play.api.libs.iteratee.DoneIteratee$$anonfun$mapM$2.apply(Iteratee.
scala:741) ~[play-iteratees_2.11-2.4.6.jar:2.4.6]
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(
Future.scala:24) [scala-library-2.11.8.jar:na]
    at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.
scala:24) [scala-library-2.11.8.jar:na]
 ... 6 common frames omitted


-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to