Hiding collections

The hidden() element indicates where (in the UI) the collection should be hidden from the user.

The acceptable values are:

  • Where.EVERYWHERE or Where.ANYWHERE

    The collection should be hidden everywhere.

  • Where.ANYWHERE

    Synonym for everywhere.

  • Where.OBJECT_FORMS

    The collection should be hidden when displayed within an object form.

  • Where.NOWHERE

    The collection should not be hidden.

The other values of the Where enum have no meaning for a collection.

For example:

import lombok.Getter;
import lombok.Setter;

public class ToDoItem {

    @CollectionLayout(
        hidden=Where.EVERYWHERE
    )
    @Getter @Setter
    private SortedSet<ToDoItem> dependencies = ...
}

Alternatives

It is also possible to use @Collection#hidden to hide a collection at the domain layer.