google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

Using morphic BasicDAO: embedded arraylist of String[]'s returns from db as an ArrayList of String's #323

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I defined a java class as...

@Entity
public class DataFile {
    @Id String ID;
    @Embedded ArrayList<String[]> data;

the data is stored ok, but using morphia BasicDao to retrieve my DataFile 
object, my ArrayList of String[]'s is noew an ArrayList of flattened Strings, 
e.g.

["1","2"] becomes "[\"1\",\"2\"]"

Is there a way to return an ArrayList of String[]'s as, well, an ArrayList of 
String[]'s???

Original issue reported on code.google.com by mdobb...@gmail.com on 14 Sep 2011 at 7:32

GoogleCodeExporter commented 9 years ago
Can you try the latest 0.99.1 snapshot. I can't reproduce this problem.

Original comment by scotthernandez on 19 Nov 2011 at 2:55