@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface Trees
@Tree
associated to the same collection. Applies to @OneToMany/@ManyToMany collections.
It allows to define a value different for @
in each view.Tree
Example:
@Trees({ @Tree(forViews="DEFAULT", value= ... ), @Tree(forViews="Simple, VerySimple", value= ... ), @Tree(forViews="Complete", value= ... ) })Since 6.1 @Tree is repeatable, so you don't need to use @Trees any more.
public abstract Tree[] value