Results 1 to 1 of 1
- 02-14-2011, 03:24 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 1
- Rep Power
- 0
How to persist multidimensional Java arrays using JPA
Hi All,
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.Java Code:Double[][] test = new Double[10][100];
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?
Similar Threads
-
Multidimensional Arrays
By holytanx in forum New To JavaReplies: 1Last Post: 08-05-2010, 10:28 PM -
Navigate through a multidimensional array
By VinTiger in forum New To JavaReplies: 4Last Post: 05-05-2009, 07:16 PM -
Multidimensional hashtable?
By jklsemicolon in forum New To JavaReplies: 6Last Post: 08-17-2008, 05:23 AM -
Make Java codes more simplier (Multidimensional Arrays)
By javanewbie in forum JCreatorReplies: 9Last Post: 06-25-2008, 04:48 AM -
Multidimensional arrays
By Java Tip in forum Java TipReplies: 0Last Post: 11-05-2007, 05:07 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks