Hi John,
If you want to be able to query on the embedded instances then you will need
to use one of the datastore specific persistence interfaces: ObjectDatastore
from Twig and Objectify support this... not sure if others support embedded
collections.
Slim3 supports embedded collections as
On 8 Apr 2010, at 13:51, Yasuo Higa wrote
Slim3 supports embedded collections as follows:
@Attribute(lob = true)
private ListEmbeddedChild Children;
See
http://sites.google.com/site/slim3appengine/slim3-datastore/defining-data-classes/serializable-objects
Serializing is a bit different to
Hi John, thanks for your clarification.
Current Slim3 does not support embedding instances like Twig/Objectify.
Yasuo Higa
Serializing is a bit different to embedding instances because the Blob is
opaque and not able to be queried. If you use @Embed in Twig or Objectify
you can query for
what do you mean by store a list of embedded objects?
if you're storing in the datastore, you have to have a way to
serialize whatever you got into one of the supported storable types.
On Apr 7, 11:04 am, tempy fay...@gmail.com wrote:
I have been dealing with lots of varying exceptions trying
On 8 Apr 2010, at 00:40, Tristan wrote:
what do you mean by store a list of embedded objects?
if you're storing in the datastore, you have to have a way to
serialize whatever you got into one of the supported storable types.
If you want to be able to query on the embedded instances then you
Well, what I need is something like this:
@PersistenceCapable(detachable = true)
public class Parent {
@PersistenceCapable
@EmbeddedOnly
public class EmbeddedChild {...}
@Embedded
private ListEmbeddedChild Children;
...
}
This doesn't work, so... Do I
i work with low-level datastore api, so i serialize things myself, but
essentially yes. The issue you're probably running into is that the
thing that you're using to interact with the datastore, does not know
how to store EmbeddedChild. I would start there.
from low-level datastore api point of
You can serialize object graphs, but keep in mind that you won't be
able to index/query this data and it will be opaque to the datastore
viewer. It will also be opaque to GAE/Python tools.
As John mentioned, you can get embedded object collections without
Java serialization if you use Objectify