What is dbReferenceProperty?

Posted by user246114 on Stack Overflow See other posts from Stack Overflow or by user246114
Published on 2010-04-21T13:33:37Z Indexed on 2010/04/21 13:43 UTC
Read the original article Hit count: 163

Filed under:

Hi,

In the python app engine docs, I see something called dbReferenceProperty. I can't understand what it is, or how it's used. I'm using the java interface to app engine, so I'm not sure if there's an equivalent.

I'm interested in it because it sounds like some sort of pseudo-join, where we can point a property of a class to some other object's value - something like if we had:

class User {
    private String mPhotoUrl;
    private String mPhone;
    private String mState;
    private String mCountry;
    .. etc ..
}

class UserLite {
    @ReferenceProperty User.mPhotoUrl;
    private String mPhotoUrl;
}

then if we had to update a User object's mPhotoUrl value, the change would somehow propagate out to all UserLite instances referencing it, rather than having to update every UserLite object instance manually,

Thanks

© Stack Overflow or respective owner

Related posts about google-app-engine