How to persist multidimensional Java arrays using JPA
I'm using JPA wit Hibernate on a Derby database and I need to store plain Java arrays like:
I tried to use @ElementCollection as stated in the JPA documentation without success.
Double test = new Double;
Additionally I tried to convert the 2-dim array into a nested List like "List<List<Double>>". But I couldn't get it running either(MappingException ("Could not determine type for: java.util.List,...).
Does anyone know how to store multidimensional arrays and/or nested Lists?