Annotation Type CollectionViews

  • @Retention(RUNTIME)
    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.

        @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.
    Javier Paniza
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      CollectionView[] value