{"action":"created","issue":{"url":"https://api.github.com/repos/neo4j/neo4j-ogm/issues/144","repository_url":"https://api.github.com/repos/neo4j/neo4j-ogm","labels_url":"https://api.github.com/repos/neo4j/neo4j-ogm/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/neo4j/neo4j-ogm/issues/144/comments","events_url":"https://api.github.com/repos/neo4j/neo4j-ogm/issues/144/events","html_url":"https://github.com/neo4j/neo4j-ogm/issues/144","id":147660612,"number":144,"title":"Subsequent Object not Correctly read","user":{"login":"biliboc","id":16562601,"avatar_url":"https://avatars.githubusercontent.com/u/16562601?v=3","gravatar_id":"","url":"https://api.github.com/users/biliboc","html_url":"https://github.com/biliboc","followers_url":"https://api.github.com/users/biliboc/followers","following_url":"https://api.github.com/users/biliboc/following{/other_user}","gists_url":"https://api.github.com/users/biliboc/gists{/gist_id}","starred_url":"https://api.github.com/users/biliboc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biliboc/subscriptions","organizations_url":"https://api.github.com/users/biliboc/orgs","repos_url":"https://api.github.com/users/biliboc/repos","events_url":"https://api.github.com/users/biliboc/events{/privacy}","received_events_url":"https://api.github.com/users/biliboc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-12T07:33:39Z","updated_at":"2016-04-14T09:57:29Z","closed_at":null,"body":"\r\n![capture](https://cloud.githubusercontent.com/assets/16562601/14452854/0fb0c480-009a-11e6-916f-5a56a02fce61.PNG)\r\nI have this domain object\r\n\r\n`@NodeEntity(label=\"DataView\")\r\npublic class DataView extends AbstractNamedOwnedObject {\r\n\r\n\tprivate DataViewType type;\r\n\r\n\t@Relationship(type = \"VIEW_PART\", direction = Relationship.OUTGOING)\r\n\tprivate Set<DataViewThingRel> viewParts;\r\n\r\n\t@Relationship(type = \"VIEW_REL\", direction = Relationship.OUTGOING)\r\n\tprivate Set<ViewThingRel> viewRels;\r\n\r\n\t@Relationship(type = \"VIEW_ATTR\", direction = Relationship.OUTGOING)\r\n\tprivate Set<ViewThingAttr> viewThingAttrs;\r\n\r\n\t@Relationship(type= \"HAS_ATTR\", direction = Relationship.OUTGOING)\r\n\tprivate Set<NodeAttr> attrs;\r\n\r\n\t@Relationship(type= \"OWNER\", direction = Relationship.OUTGOING)\r\n\tprotected Thing owner;\r\n\r\n\t@Relationship(type= \"SHARED_WITH\", direction = Relationship.OUTGOING)\r\n\tprivate Set<Thing> sharedWith;\r\n\t\t\r\n\t....\r\n\t\r\n}`\r\n\r\n\r\nand this query\r\n\r\n`\r\n\tSTART s=node(4028) MATCH (s:DataView)-[:OWNER|SHARED_WITH]->(u:_GraphUser_ {name:\"cmitocar\"}) WITH s MATCH p=()<-[:OWNER|SHARED_WITH*0..1]-(s)-[:VIEW_ATTR|VIEW_PART|VIEW_REL|DW_R_END|W_R_START|W_R_END|HAS_ATTR|W_HAS_ATTR*0..3]-(m) RETURN p\r\n`\t\r\n`\r\n\t\treturn session.queryForObject(DataView.class, \"START s=node({sid}) MATCH (s:DataView)-[:OWNER|SHARED_WITH]->(u:_GraphUser_ {name:{username}}) WITH s MATCH p=()<-[:OWNER|SHARED_WITH*0..1]-(s)-[:VIEW_ATTR|VIEW_PART|VIEW_REL|DW_R_END|W_R_START|W_R_END|HAS_ATTR|W_HAS_ATTR*0..3]-(m) RETURN p\",\r\n\t\t\t\tImmutableMap.<String,Object>of( \"sid\", id, \"username\", username ) );\r\n`\r\n\t\r\n\r\nreturns the right object BUT in the `sharedWith` field there is one entry that is the same value in the `owner`\r\n\r\n\r\nAs per image attached it should return  @`'cmitocar2'`\tnode.\r\n\r\n\r\nSIMPLIFICATION:\r\n\r\nREQUEST\r\n`\r\n{\"statements\":[{\"statement\":\"START s=node({sid}) MATCH (s:DataView)-[:OWNER|SHARED_WITH]->(u:_GraphUser_ {name:{username}}) WITH s MATCH p=()<-[:OWNER|SHARED_WITH]-(s) RETURN p\",\"parameters\":{\"sid\":4028,\"username\":\"cmitocar\"},\"resultDataContents\":[\"graph\"],\"includeStats\":false}]}\r\n`\r\nOUTPUT\r\n`\r\n\r\n\r\n    {\r\n        \"commit\": \"http://localhost:7478/db/data/transaction/12163/commit\",\r\n        \"results\":\r\n        [\r\n            {\r\n                \"columns\":\r\n                [\r\n                    \"p\"\r\n                ],\r\n                \"data\":\r\n                [\r\n                    {\r\n                        \"graph\":\r\n                        {\r\n                            \"nodes\":\r\n                            [\r\n                                {\r\n                                    \"id\": \"22588\",\r\n                                    \"labels\":\r\n                                    [\r\n                                        \"Thing\",\r\n                                        \"_GraphUser_\",\r\n                                        \"ThingWithRels\",\r\n                                        \"AbstractNamedOwnedObject\"\r\n                                    ],\r\n                                    \"properties\":\r\n                                    {\r\n                                        \"nameClosure\": \"CMITOCAR2\",\r\n                                        \"modifiedDtTm\": 1459918622367,\r\n                                        \"createdDtTm\": 1459918622367,\r\n                                        \"name\": \"cmitocar2\",\r\n                                        \"type\": \"_GraphUser_\",\r\n                                        \"namelc\": \"cmitocar2\"\r\n                                    }\r\n                                },\r\n                                {\r\n                                    \"id\": \"4028\",\r\n                                    \"labels\":\r\n                                    [\r\n                                        \"DataView\",\r\n                                        \"AbstractNamedOwnedObject\"\r\n                                    ],\r\n                                    \"properties\":\r\n                                    {\r\n                                        \"nameClosure\": \"TEST01\",\r\n                                        \"modifiedDtTm\": 1460442558693,\r\n                                        \"createdDtTm\": 1459147255806,\r\n                                        \"name\": \"Test01\",\r\n                                        \"type\": \"GRAPH\",\r\n                                        \"namelc\": \"test01\"\r\n                                    }\r\n                                }\r\n                            ],\r\n                            \"relationships\":\r\n                            [\r\n                                {\r\n                                    \"id\": \"26993\",\r\n                                    \"type\": \"SHARED_WITH\",\r\n                                    \"startNode\": \"4028\",\r\n                                    \"endNode\": \"22588\",\r\n                                    \"properties\":\r\n                                    {\r\n                                    }\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"graph\":\r\n                        {\r\n                            \"nodes\":\r\n                            [\r\n                                {\r\n                                    \"id\": \"116\",\r\n                                    \"labels\":\r\n                                    [\r\n                                        \"Thing\",\r\n                                        \"_GraphUser_\",\r\n                                        \"ThingWithRels\",\r\n                                        \"AbstractNamedOwnedObject\"\r\n                                    ],\r\n                                    \"properties\":\r\n                                    {\r\n                                        \"nameClosure\": \"CMITOCAR\",\r\n                                        \"modifiedDtTm\": 1458894979400,\r\n                                        \"createdDtTm\": 1458894979400,\r\n                                        \"name\": \"cmitocar\",\r\n                                        \"type\": \"_GraphUser_\",\r\n                                        \"namelc\": \"cmitocar\"\r\n                                    }\r\n                                },\r\n                                {\r\n                                    \"id\": \"4028\",\r\n                                    \"labels\":\r\n                                    [\r\n                                        \"DataView\",\r\n                                        \"AbstractNamedOwnedObject\"\r\n                                    ],\r\n                                    \"properties\":\r\n                                    {\r\n                                        \"nameClosure\": \"TEST01\",\r\n                                        \"modifiedDtTm\": 1460442558693,\r\n                                        \"createdDtTm\": 1459147255806,\r\n                                        \"name\": \"Test01\",\r\n                                        \"type\": \"GRAPH\",\r\n                                        \"namelc\": \"test01\"\r\n                                    }\r\n                                }\r\n                            ],\r\n                            \"relationships\":\r\n                            [\r\n                                {\r\n                                    \"id\": \"3961\",\r\n                                    \"type\": \"OWNER\",\r\n                                    \"startNode\": \"4028\",\r\n                                    \"endNode\": \"116\",\r\n                                    \"properties\":\r\n                                    {\r\n                                    }\r\n                                }\r\n                            ]\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        ],\r\n        \"transaction\":\r\n        {\r\n            \"expires\": \"Tue, 12 Apr 2016 08:00:49 +0000\"\r\n        },\r\n        \"errors\":\r\n        [\r\n        ]\r\n    }\r\n\r\n\r\n`"},"comment":{"url":"https://api.github.com/repos/neo4j/neo4j-ogm/issues/comments/209858829","html_url":"https://github.com/neo4j/neo4j-ogm/issues/144#issuecomment-209858829","issue_url":"https://api.github.com/repos/neo4j/neo4j-ogm/issues/144","id":209858829,"user":{"login":"biliboc","id":16562601,"avatar_url":"https://avatars.githubusercontent.com/u/16562601?v=3","gravatar_id":"","url":"https://api.github.com/users/biliboc","html_url":"https://github.com/biliboc","followers_url":"https://api.github.com/users/biliboc/followers","following_url":"https://api.github.com/users/biliboc/following{/other_user}","gists_url":"https://api.github.com/users/biliboc/gists{/gist_id}","starred_url":"https://api.github.com/users/biliboc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biliboc/subscriptions","organizations_url":"https://api.github.com/users/biliboc/orgs","repos_url":"https://api.github.com/users/biliboc/repos","events_url":"https://api.github.com/users/biliboc/events{/privacy}","received_events_url":"https://api.github.com/users/biliboc/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T09:57:29Z","updated_at":"2016-04-14T09:57:29Z","body":"The same problem when loading dataview by ID"}}