[appengine-java] Re: Not able to write string arrays in data store

2010-03-13 Thread datanucleus
I said have a dummy class with an ArrayList, not a dummy class with a multiple-dimension array. I also said make the dummy class persistable ... @PersistenceCapable. Nothing worthy of an example -- You received this message because you are subscribed to the Google Groups "Google App Engine for J

[appengine-java] Re: Not able to write string arrays in data store

2010-03-13 Thread Ganesh
I thought I have done it by declaring my array elements into a separate QArray class..I probably misunderstood your solution..Can you give some code examples involving string arrays and dummy classes? On Mar 13, 11:49 am, datanucleus wrote: > So you didn't declare the dummy class as persistable l

[appengine-java] Re: Not able to write string arrays in data store

2010-03-13 Thread datanucleus
So you didn't declare the dummy class as persistable like I mentioned that you ought to do ... -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscr

[appengine-java] Re: Not able to write string arrays in data store

2010-03-13 Thread Ganesh
public class Qarray { public String[][] Cellval; public Qarray() { } } --- import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.ann

[appengine-java] Re: Not able to write string arrays in data store

2010-03-12 Thread datanucleus
You mean you now have ArrayList, as opposed to the array mentioned in your first post ? ArrayList is not a supported property type. ArrayList is. You could obviously add a dummy class (e.g MyTempClass) as persistable with the other ArrayList in it as a field so the original field becomes ArrayList

[appengine-java] Re: Not able to write string arrays in data store

2010-03-11 Thread Ganesh
This is the class which I wanted to write into datastore: import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import java.util.List; import java.util.Arrays; import java.util.

[appengine-java] Re: Not able to write string arrays in data store

2010-03-11 Thread Robert Lancer
Setting: List arrayDim1 = new ArrayList(); List arrayDim2 = new ArrayList(); entity.setUnindexedProperty("ArrayDim1", arrayDim1 ); entity.setUnindexedProperty("ArrayDim2", arrayDim2 ); Unless your looking to run queries against the lists use the setUnindexedProperty. Getting: List arrayDim1 =

[appengine-java] Re: Not able to write string arrays in data store

2010-03-11 Thread datanucleus
> I tried changing the string array object to java.util.arraylist (gave > serizable = 'true' option). This time I was able to write the data > successfully. But when I tried to retrieve it, I am facing null > pointer exception. Perhaps if you actually posted the NPE+stack trace, and code used to r

[appengine-java] Re: Not able to write string arrays in data store

2010-03-11 Thread Ganesh
Hi, Thanks for your response...I dont have my code with me right now..I will post it in a day or two. Meanwhile, do you have any example of handling two dimensional arrays into two separate lists of ArrayList? -Thanks Ganesh On Mar 10, 5:17 pm, Robert Lancer wrote: > Just use two separate lists

[appengine-java] Re: Not able to write string arrays in data store

2010-03-10 Thread Robert Lancer
Just use two separate lists of ArrayList and it should work fine. Also you have to test for null whenever you pull anything out of datastore, something like if null then return new ArrayList(0) should work this case. On Mar 10, 4:28 pm, thierry Le conniat wrote: > Hello, > how to do you retreiv

[appengine-java] Re: Not able to write string arrays in data store

2010-03-10 Thread thierry Le conniat
Hello, how to do you retreive data , could you send jour java code ? On 10 mar, 17:28, Ganesh wrote: > Hi, > > I am trying to store two dimensional string array in google data > store. I was getting an exception saying this data type not supported. > I tried changing the string array object to ja