Annotation Interface Trees

×News: OpenXava 7.7 released - March 9 · Read more

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

Applies to @OneToMany/@ManyToMany collections.

It allows to define a value different for @Tree in each view.
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.
Author:
Federico Alcántara
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details

    • value

      Tree[] value