java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
ch.tocco.nice2.persist.core.impl.hibernate.pojo.relation.RelationSet<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class RelationSet<E extends Entity> extends AbstractSet<E>
Set implementation that wraps a (to-many) Relation. An instance of this class is returned from the generated getters of to many relations. The actual hibernate PersistentCollection is wrapped and modified by the ToManyRelationAdapter. This class is used to ensure that behaviour is the same (listeners, interceptors) if the generated getters are used directly instead of the Entity interface. Currently only Set.add(Object) and Set.remove(Object) are supported.
See Also: