Annotation Type TypeDef


  • @Target({TYPE,PACKAGE})
    @Retention(RUNTIME)
    @Repeatable(TypeDefs.class)
    public @interface TypeDef
    A type definition. Much like Type, but here we can centralize the definition under a name and refer to that name elsewhere. The plural form is TypeDefs.
    See Also:
    Type, UserType, CompositeUserType, Type
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<?> typeClass
      The type implementation class.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?> defaultForType
      Name a java type for which this defined type should be the default mapping.
      java.lang.String name
      The type name.
      Parameter[] parameters
      Any configuration parameters for this type definition.
    • Element Detail

      • typeClass

        java.lang.Class<?> typeClass
        The type implementation class.
      • name

        java.lang.String name
        The type name. This is the name that would be used in other locations.
        Default:
        ""
      • defaultForType

        java.lang.Class<?> defaultForType
        Name a java type for which this defined type should be the default mapping.
        Default:
        void.class
      • parameters

        Parameter[] parameters
        Any configuration parameters for this type definition.
        Default:
        {}