@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface CollectionViews
@CollectionView
associated to the same collection. Applies to @OneToMany/@ManyToMany collections.
It allows to define a value different for @
in each view.CollectionView
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.
Modifier and Type | Required Element and Description |
---|---|
CollectionView[] |
value |
public abstract CollectionView[] value