Language: Java 8

So I have a datastore set up and one of the KIND's has an Embedded Entity 
as a property.

Everything works perfectly fine until you want to turn that entity back 
into the object because for some reason there doesn't seem to be a way to 
get an embedded entity from an entity object. 

To get any particular type from a given Entity entity, you use:
entity.getType(String nameOfProperty)

So to get an Entity, you would assume you would use:
entity.getEntity(String nameOfProperty), but for some reason it returns 
something called a FullEntity<IncompleteKey> and there dosen't seem to be a 
way to turn that into a normal Entity.

Along with this I found documentation that said another way to get an 
Embedded entity was
(YourTypeHere) entity.getProperty(String nameOfPosition)
and this would be fine...if it was an actualy method, but for some reason 
it isn't because I guess the documentation is out of date. 

Another method I saw was to use the EmbeddedEntity object...which doesn't 
exist either.

Could somebody please tell me what I need to do to get an Entity object 
from withinside of another Entity object???

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/824fc474-e75f-4f0f-930c-cd2804c93edb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine... Cole Abbeduto

Reply via email to