@Retention(value=RUNTIME) @Target(value=FIELD) public @interface Owner
Place on one or more fields insde an @Embed class. When loaded, the field will be populated with a reference to the "owning" object. Since embedded classes can nest other classes, this will reference the first object of the correct type when searching up the chain.
Owner fields are ignored during save.
Copyright © 2014. All rights reserved.