Annotation Type EdmFunction.ReturnType

Enclosing class:
EdmFunction

public static @interface EdmFunction.ReturnType
Define if the return type for the function. It can be a collection (entity set) or an single entity (entity).
  • Element Details

    • isCollection

      boolean isCollection
      Returns:
      true if a collection is returned, otherwise false if a single entity is returned.
      Default:
      false
    • isNullable

      boolean isNullable
      Default:
      true
    • maxLength

      int maxLength
      Default:
      -1
    • precision

      int precision
      Default:
      -1
    • scale

      int scale
      Default:
      -1
    • srid

      Default:
      @com.sap.olingo.jpa.metadata.core.edm.annotation.EdmGeospatial
    • type

      Class<?> type
      Define the return type for the function import.

      Returns:
      Class of java parameter (row) type. This can be either a simple type like Integer.class or the POJO defining an Entity. If the type is not set and the function is defined at an JPA Entity POJO, the corresponding Entity Type is used. In addition, in case of an unbound function, no out-bound parameter is set.
      Default:
      java.lang.Object.class