Class KobbyKotlinDtoExtension

    • Constructor Detail

      • KobbyKotlinDtoExtension

        KobbyKotlinDtoExtension()
    • Method Detail

      • getPackageName

         final String getPackageName()

        Package name for DTO classes. Relative to root package name.

        Default: "dto"

      • setPackageName

         final Unit setPackageName(String packageName)

        Package name for DTO classes. Relative to root package name.

        Default: "dto"

      • getPrefix

         final String getPrefix()

        Prefix of DTO classes generated from GraphQL objects, interfaces and unions

      • setPrefix

         final Unit setPrefix(String prefix)

        Prefix of DTO classes generated from GraphQL objects, interfaces and unions

      • getPostfix

         final String getPostfix()

        Postfix of DTO classes generated from GraphQL objects, interfaces and unions.

        Default: "Dto"

      • setPostfix

         final Unit setPostfix(String postfix)

        Postfix of DTO classes generated from GraphQL objects, interfaces and unions.

        Default: "Dto"

      • getEnumPrefix

         final String getEnumPrefix()

        Prefix of DTO classes generated from GraphQL enums

      • getApplyPrimaryKeys

         final Boolean getApplyPrimaryKeys()

        Kobby can generate "equals" and "hashCode" functions for entities classes based on fields marked with "@primaryKey" directive. This parameter provides an ability to apply the same generation logic to DTO classes.

        Default: false

      • setApplyPrimaryKeys

         final Unit setApplyPrimaryKeys(Boolean applyPrimaryKeys)

        Kobby can generate "equals" and "hashCode" functions for entities classes based on fields marked with "@primaryKey" directive. This parameter provides an ability to apply the same generation logic to DTO classes.

        Default: false

      • getMaxNumberOfFieldsForImmutableDtoClass

         final Integer getMaxNumberOfFieldsForImmutableDtoClass()

        Generate immutable DTO class if number of GraphQL type fields <= property value. Otherwise, generate a mutable DTO class. Set the property value to 0 to always generate mutable DTO classes. More details

        Default: 245

      • setMaxNumberOfFieldsForImmutableDtoClass

         final Unit setMaxNumberOfFieldsForImmutableDtoClass(Integer maxNumberOfFieldsForImmutableDtoClass)

        Generate immutable DTO class if number of GraphQL type fields <= property value. Otherwise, generate a mutable DTO class. Set the property value to 0 to always generate mutable DTO classes. More details

        Default: 245

      • getMaxNumberOfFieldsForImmutableInputClass

         final Integer getMaxNumberOfFieldsForImmutableInputClass()

        Generate immutable Input class if number of GraphQL Input type fields <= property value. Otherwise, generate a mutable Input class. Set the property value to 0 to always generate mutable Input classes. More details

        Default: 245

      • setMaxNumberOfFieldsForImmutableInputClass

         final Unit setMaxNumberOfFieldsForImmutableInputClass(Integer maxNumberOfFieldsForImmutableInputClass)

        Generate immutable Input class if number of GraphQL Input type fields <= property value. Otherwise, generate a mutable Input class. Set the property value to 0 to always generate mutable Input classes. More details

        Default: 245

      • jackson

         final Unit jackson(Action<KobbyKotlinDtoJacksonExtension> action)

        Configuration of Jackson annotations generation for DTO classes.

        Note that Kotlinx serialization and Jackson serialization are not supported simultaneously.