knagode
knagode

Reputation: 6125

Best practice to store relations in Java GAE with datastore

I wonder what is best practice to store relations in GAE with datastore.

If I have User and UserItem. How should I store reference to User inside UserItem?

Should I store:

Upvotes: 0

Views: 87

Answers (1)

jtahlborn
jtahlborn

Reputation: 53694

In java you would use the Key property to store a reference to another datastore object.

Upvotes: 1

Related Questions