I have 5 types of objects in an application let’s say A, B , C, D, E
The application lists objects of all type, where it shows their name, created user and other Info.
Now, to be able to show user’s name in every object listing, I have some options
1) Store the USER entity key in every object and then when I retrieve say list of Objects of type A, then also retrieve user’s keys and their names and then attach them to objects of type A
2) When a object of any type is created, also store a property “Name” which will be name of user who created the object (Yikes approach IMHO, what if the user changes his name later 😉
But I am not convinced both ways above are right! I am looking for an answer, from someone who might have faced similar problem
Actually you’ve already answered yourself, option 2 is not advisable, since an user can change his/her username, and cascading the change (manually) in the DataStore is not a good choice.