-
Oct 8th, 2012, 11:32 AM
#1
[Neo4j] Issues persisting a List/Set/Array of byte array
Hi Everyone,
I ran into some issues with byte array.
I was able to successfully persist and read "byte[]" in neo4j database.
I verified them using neoeclipse (a graph database viewer) and found they are appearing as byte[] datatype.
Next I tried to persist List<byte[]> or Set<byte[]> or byte[][]. (i.e., [[1,2,3], [4,5,6]....] )
After persisting, I found all of them are appearing as String[] (i.e., [ "1,2,3", "4,5,6", ... ] ) in the database.
When I read them back I was able to read them if I had persisted them as List<byte[]> or Set<byte[]>. However in case of byte[][], it was throwing a spring framework exception (Cannot convert String to byte array), while reading back.
I have 2 questions
1) Does spring data framework support higher dimensional arrays yet?
2) Since the List<byte[]> and Set<byte[]> can be successfully persisted and read back, are they converting String "1,2,3" to byte[] [1,2,3] automatically internally ? Is it really supported by Spring data and can I safely use them ?
Thanks in advance
Faisal
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules