comparison app/models/ClaimModel.java @ 38:a2abe67d7c7a

fix createMention action bug
author one
date Thu, 04 Oct 2012 01:05:19 +0900
parents bc3ac73320f9
children 870553e92e3e
comparison
equal deleted inserted replaced
37:bc3ac73320f9 38:a2abe67d7c7a
53 info.put(TYPE, Json.toJson(label)); 53 info.put(TYPE, Json.toJson(label));
54 GremlinPipeline<Edge,Vertex> pipeChildVertex = new GremlinPipeline<Edge,Vertex>(); 54 GremlinPipeline<Edge,Vertex> pipeChildVertex = new GremlinPipeline<Edge,Vertex>();
55 pipeChildVertex.start(e).inV(); 55 pipeChildVertex.start(e).inV();
56 ClaimModel childClaim = new ClaimModel(pipeChildVertex.next()); 56 ClaimModel childClaim = new ClaimModel(pipeChildVertex.next());
57 info.put(CLAIM, childClaim.getClaimInfoTraverse()); 57 info.put(CLAIM, childClaim.getClaimInfoTraverse());
58 info.put(MENTIONS, Json.toJson(childClaim.getClaimMentionsRecursive())); 58 info.put(ID, Json.toJson(childClaim.getId()));
59 array.add(info); 59 array.add(info);
60 } 60 }
61 return array.toArray(); 61 return array.toArray();
62 } 62 }
63 63