I'm and new in objectify and datastore. I have three kinds 1-user, 2-post, 3-feed user is parent of post and feed and feed contain Ref of post.
Feed
public class Feed {
@Id Long id;
@Parent Key<User> userKey;
Ref<Post> post;
Post
public class Post {
@Id Long id;
@Parent Key<User> userKey;
String content;
Get Entity
Key key = Key.create(User.class, 124);
Query query = ofy().load().type(Feed.class).ancestor(key);
Feed feed = (Feed) query.list().get(0);
out.print(feed.getPost()); // return LiveRef(Key<?>(Post(4644337115725824)))
out.print(feed.getPost().get()); // return null
I want to get the content of Post. How can I do that ? Post is exist with this id in datastore.