Annotation Interface MergedForm


@Target(PARAMETER) @Retention(RUNTIME) public @interface MergedForm
Capable of reading an input form and mapping this into an existing/new entity. The entity is declared as parameter in our handler mapping method.
Since:
Nov 15, 2015
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Type of input form.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Entity identifier variable in our path mapping.
    Class types of the before-/afterMerge instances maintained in MergePair
    The name of the request part in the multipart form
    boolean
    When patch, we only map the provided properties from our input form to the entity.
  • Element Details

    • value

      Class<?> value
      Type of input form.
      Returns:
      the input form class
    • patch

      boolean patch
      When patch, we only map the provided properties from our input form to the entity.
      Returns:
      the patch
      Default:
      false
    • mergeId

      String mergeId
      Entity identifier variable in our path mapping.
      Returns:
      the identifier variable
      Default:
      ""
    • mergePairClass

      Class<?> mergePairClass
      Class types of the before-/afterMerge instances maintained in MergePair
      Default:
      java.lang.Object.class
    • multiPart

      String multiPart
      The name of the request part in the multipart form
      Returns:
      the name of the request part in the multipart form
      Default:
      ""