Annotation Interface CollectionViews


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface CollectionViews
A group of @CollectionView associated to the same collection.

Applies to @OneToMany/@ManyToMany collections.

It allows to define a value different for @CollectionView in each view.
Example:

  @CollectionViews({
    @CollectionView(forViews="DEFAULT", value= ... ),
    @CollectionView(forViews="Simple, VerySimple", value= ... ),
    @CollectionView(forViews="Complete", value= ... )
  })
 
Since 6.1 @CollectionView is repeatable, so you don't need to use @CollectionViews any more.
Author:
Javier Paniza
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description