Hiding collections
The hidden() element indicates where (in the UI) the collection should be hidden from the user.
The acceptable values are:
-
Where.EVERYWHEREorWhere.ANYWHEREThe collection should be hidden everywhere.
-
Where.ANYWHERESynonym for everywhere.
-
Where.OBJECT_FORMSThe collection should be hidden when displayed within an object form.
-
Where.NOWHEREThe 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.