Annotation Interface HashOwns


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface HashOwns
This annotation expresses an UML composition for the use of id generation. Composition means that if an entity a owns an entity b then b cannot exist without a. In the context of hash id assignment, it means that an object's final hash id depends on the hash id of its owner. Technically, once a resource's hash id is computed, another depth first pass over all related owned objects is made in order to inject their owner hash id back into the hash ids of the owned objects. A typical use case example is to model maps where map entries with the same key/value are distinguished by the hash id of the owning map.
Author:
raven