Re: [appengine-java] Re: how to persist a list of bytearray?

2011-03-20 Thread John Patterson
On 18/03/2011 15:29, Jeff Schnitzer wrote: I normally don't do this but... if you're using Objectify, it's just: @Serialized private List attachments; Jeff ... and for comparison, with Twig you use its type converter system to tell it to store the whole list as a single blob: @Type(Blo

Re: [appengine-java] Re: how to persist a list of bytearray?

2011-03-18 Thread Jeff Schnitzer
I normally don't do this but... if you're using Objectify, it's just: @Serialized private List attachments; Jeff On Thu, Mar 17, 2011 at 12:38 AM, Khanh Dao Minh wrote: > Dear Tao, > As I understand, you should not use byte[] in GAE store. GAE only support > some core value type > here: http://

[appengine-java] Re: how to persist a list of bytearray?

2011-03-17 Thread Tao
Thanks a lot, Khanh ! -- 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@goo

[appengine-java] Re: how to persist a list of bytearray?

2011-03-17 Thread Khanh Dao Minh
Dear Tao, As I understand, you should not use byte[] in GAE store. GAE only support some core value type here: http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types So I think you may change to ShortBlob: http://code.google.com/appengine/docs/java/javadoc