2

我正在尝试解决 Neo4j 和蓝图的问题。添加顶点可以正常工作,也可以向它们添加属性。但是当我尝试从数据库中读取顶点时出现问题。它们都被读取了——所以它们的数量是可以的,但它们随机地没有它们的属性和边缘。而不是他们,我得到的是空值。非常奇怪的是,当一个 Vertex 曾经有 null 属性时,另一次它有期望值。我也使用 PlayFramework 并且在每次刷新时我都添加了 2 个具有属性的顶点(名称:Jan,名称;Adam)。从图形嵌入式数据库中读取数据似乎存在问题。有没有人遇到过类似的烦恼?我附上了一个带有调试的列表,以向您展示我的问题的更好视角。在此先感谢您的每一个回复;)

[debug] application - -----------------------------------------------
[debug] application - v[1] name: Adam Kowalski
[debug] application - v[2] name: Jan Nowak
[debug] application - -----------------------------------------------
[debug] application - v[1] name: Adam Kowalski
[debug] application - v[2] name: Jan Nowak
[debug] application - v[3] name: Adam Kowalski
[debug] application - v[4] name: Jan Nowak
[debug] application - -----------------------------------------------
[debug] application - v[1] name: null
[debug] application - v[2] name: null
[debug] application - v[3] name: null
[debug] application - v[4] name: null
[debug] application - v[5] name: Adam Kowalski
[debug] application - v[6] name: Jan Nowak
[debug] application - -----------------------------------------------
[debug] application - v[1] name: null
[debug] application - v[2] name: null
[debug] application - v[3] name: null
[debug] application - v[4] name: null
[debug] application - v[5] name: null
[debug] application - v[6] name: null
[debug] application - v[7] name: Adam Kowalski
[debug] application - v[8] name: Jan Nowak
[debug] application - -----------------------------------------------
[debug] application - v[1] name: null
[debug] application - v[2] name: null
[debug] application - v[3] name: null
[debug] application - v[4] name: null
[debug] application - v[5] name: null
[debug] application - v[6] name: null
[debug] application - v[7] name: Adam Kowalski
[debug] application - v[8] name: Jan Nowak
[debug] application - v[9] name: Adam Kowalski
[debug] application - v[10] name: Jan Nowak
[debug] application - -----------------------------------------------
[debug] application - v[1] name: null
[debug] application - v[2] name: null
[debug] application - v[3] name: null
[debug] application - v[4] name: null
[debug] application - v[5] name: null
[debug] application - v[6] name: null
[debug] application - v[7] name: Adam Kowalski
[debug] application - v[8] name: Jan Nowak
[debug] application - v[9] name: Adam Kowalski
[debug] application - v[10] name: Jan Nowak
[debug] application - v[11] name: Adam Kowalski
[debug] application - v[12] name: Jan Nowak
[debug] application - -----------------------------------------------
[debug] application - v[1] name: null
[debug] application - v[2] name: null
[debug] application - v[3] name: null
[debug] application - v[4] name: null
[debug] application - v[5] name: Adam Kowalski
[debug] application - v[6] name: Jan Nowak
[debug] application - v[7] name: null
[debug] application - v[8] name: null
[debug] application - v[9] name: null
[debug] application - v[10] name: null
[debug] application - v[11] name: null
[debug] application - v[12] name: null
[debug] application - v[13] name: Adam Kowalski
[debug] application - v[14] name: Jan Nowak
[debug] application - -----------------------------------------------
[debug] application - v[1] name: null
[debug] application - v[2] name: null
[debug] application - v[3] name: null
[debug] application - v[4] name: null
[debug] application - v[5] name: null
[debug] application - v[6] name: null
[debug] application - v[7] name: Adam Kowalski
[debug] application - v[8] name: Jan Nowak
[debug] application - v[9] name: Adam Kowalski
[debug] application - v[10] name: Jan Nowak
[debug] application - v[11] name: Adam Kowalski
[debug] application - v[12] name: Jan Nowak
[debug] application - v[13] name: null
[debug] application - v[14] name: null
[debug] application - v[15] name: Adam Kowalski
[debug] application - v[16] name: Jan Nowak
4

0 回答 0