Class EntityToEntity

java.lang.Object
mc.core.model.base.EntityToEntity
All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity, IObjectAssignment, ISortableEntity, IVersionDependent

@Entity public class EntityToEntity extends Object implements IBaseEntity, IVersionDependent, IObjectAssignment
Class to represent the association of a ComplexEntity with a ComplexEntity of the same type, also called Relation. Although EntityToEntity works with ComplexEntity, since RelationType works with NodeTypes currently only Nodes can take part in Relations. The relationType is mandatory and configures the relation. The first Node (in a MASTER_SLAVE-relation the master) must be of type given by entity1 in RelationType, the related Node of one of the types given by entities2 of RelationType.
If the Node has snapshot functionality its EntityToEntity are copied with the snapshot. The snapshotFlag is set accordingly.
Filters can be assigned to EntityToEntitys in order to group and structure them for publication or display, currently not used.
See Also: