Annotation Interface EditView


View of the referenced object used to modify it from a reference or collection.

Applies to references and collections.

If you omit this annotation, then the default view of the referenced object is used when modifying the object from the reference. With this annotation you can indicate that it uses another view.
Example for a reference:

  @ManyToOne 
  @EditView("SimpleEdition")
  private Seller seller;
 
For collections, this annotation overrides the view specified by CollectionView when editing an existing element. If you use @CollectionView("Simple") it's equivalent to using both @NewView("Simple") and @EditView("Simple"). You can use @EditView to specify a different view just for editing.
Example for a collection:
  @OneToMany(mappedBy="invoice")
  @CollectionView("Simple")
  @EditView("SimpleEdition") // Overrides @CollectionView for editing
  private Collection<InvoiceDetail> details;
 
Since:
7.7
Author:
Javier Paniza
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Name of a view present in the referenced object to use for modification.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    List of comma separated view names where this annotation applies.
    List of comma separated view names where this annotation does not apply.
  • Element Details

    • value

      String value
      Name of a view present in the referenced object to use for modification.
    • forViews

      String forViews
      List of comma separated view names where this annotation applies.

      Exclusive with notForViews.
      If both forViews and notForViews are omitted then this annotation apply to all views.
      You can use the string "DEFAULT" for referencing to the default view (the view with no name).

      Default:
      ""
    • notForViews

      String notForViews
      List of comma separated view names where this annotation does not apply.

      Exclusive with forViews.
      If both forViews and notForViews are omitted then this annotation apply to all views.
      You can use the string "DEFAULT" for referencing to the default view (the view with no name).

      Default:
      ""