Annotation Type One


  • @Documented
    @Retention(RUNTIME)
    @Target({})
    public @interface One
    The annotation that specify the nested statement for retrieving single object.
    See Also:
    Result, Results
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String columnPrefix
      Returns the columnPrefix.
      FetchType fetchType
      Returns the fetch strategy for nested statement.
      java.lang.String resultMap
      Returns the result map id used to map single object.
      java.lang.String select
      Returns the statement id that retrieves single object.
    • Element Detail

      • columnPrefix

        java.lang.String columnPrefix
        Returns the columnPrefix.
        Returns:
        the columnPrefix.
        Since:
        3.5.5
        Default:
        ""
      • resultMap

        java.lang.String resultMap
        Returns the result map id used to map single object.
        Returns:
        the result map id
        Since:
        3.5.5
        Default:
        ""
      • select

        java.lang.String select
        Returns the statement id that retrieves single object.
        Returns:
        the statement id
        Default:
        ""
      • fetchType

        FetchType fetchType
        Returns the fetch strategy for nested statement.
        Returns:
        the fetch strategy
        Default:
        org.apache.ibatis.mapping.FetchType.DEFAULT