org.apache.olingo.odata2.api.annotation.edm

## Annotation Type EdmFacets

-     @Retention(value=RUNTIME)
       @Target(value=ANNOTATION_TYPE)
      public @interface EdmFacets

  Annotation for definition of EdmFacets on an EdmProperty (for an EdmEntityType or EdmComplexType which contains the EdmProperty as a field).

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `int` | `maxLength` The maximum length of the type in use.
    `boolean` | `nullable` The information if the type in use is nullable.
    `int` | `precision` The precision of the type in use.
    `int` | `scale` The scale of the type in use.

- - ### Element Detail

    - #### maxLength

          public abstract int maxLength

      The maximum length of the type in use. A negative value indicates for the EDM provider an unset/default value.
      Returns:
        the maximum length of the type in use as Integer
      Default:
        -1

  - - #### scale

          public abstract int scale

      The scale of the type in use. A negative value indicates for the EDM provider an unset/default value.
      Returns:
        the scale of the type in use as Integer
      Default:
        -1

  - - #### precision

          public abstract int precision

      The precision of the type in use. A negative value indicates for the EDM provider an unset/default value.
      Returns:
        the precision of the type in use as Integer
      Default:
        -1

  - - #### nullable

          public abstract boolean nullable

      The information if the type in use is nullable. The default value for nullable is `true`.
      Returns:
        `true` if the type in use is nullable, `false` otherwise.
      Default:
        true

Copyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.