I have a large object that I store using objectify. I need a list of those objects with only subset of the properties populated. How can this be done?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
App Engine stores and retrieves entities as encoded Protocol Buffers. There’s no way for the underlying infrastructure to store, update, or retrieve only part of an entity, so there’s no point having a library that does this – hence Objectify, like other libraries, don’t. If you regularly need to access only part of an entity, split those fields into a separate entity.