I'm having trouble reading / unpacking multidimensional arrays using Morphia.
Next class:
@Entity
class A {
double[][] matrix;
}
is sorted and stored correctly in mongodb, but when reading, I get an exception that double [] [] cannot be constructed. I tried using a custom TypeConverter, but it will not be called for such types. Similar problems occur when using this element:
List<double[]> matrix;
I did not find any annotations that could help morphia figure out which type is expected in the array. I suspect this is not yet supported. Any suggestions?
Thanks in advance.
source
share