Class MemberRef

java.lang.Object
nl.vpro.domain.media.MemberRef
All Implemented Interfaces:
Serializable, Comparable<MemberRef>, Identifiable<Long>, ParentChildRelation, RecursiveParentChildRelation, nl.vpro.domain.media.support.MutableOwnable, nl.vpro.domain.media.support.Ownable

@Entity public class MemberRef extends Object implements Identifiable<Long>, Comparable<MemberRef>, Serializable, nl.vpro.domain.media.support.MutableOwnable, RecursiveParentChildRelation

Expresses an association between MediaObjects. MediaObjects can become a member or episode of other MediaObjects. The member is the member of this relation which references the aggregating owner.

Members or episodes can have an ordering if they are a part of an ordered Group. In that case a MemberRef gets an number value denoting its position in the group. In all other cases this number should retain a null value.

Incoming XML has a member-/episodeof element for each member and references the owner by its URN. The urnRef field holds a temporary reference just for this purpose and should never be persisted.

Author:
roekoe
See Also: