Annotation Type OnlyByCreator

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<?>[] groups  
      String message  
      String owner
      If the entity belongs to a parent, then returns the name of the field that refers the owner of the entity.
      Class<? extends javax.validation.Payload>[] payload  
    • Element Detail

      • message

        String message
        Default:
        "The requester of the action on the entity isn\'t the creator of that entity"
      • groups

        Class<?>[] groups
        Default:
        {}
      • payload

        Class<? extends javax.validation.Payload>[] payload
        Default:
        {}
      • owner

        String owner
        If the entity belongs to a parent, then returns the name of the field that refers the owner of the entity.
        Returns:
        the field name from which the owner of the entity can be retrieved (the owner must be also an entity).
        Default:
        ""