Annotation Type JdbcTypeRegistration

  • @Target({PACKAGE,TYPE})
    public @interface JdbcTypeRegistration
    Describes a SqlTypeDescriptor to be added to the JdbcTypeRegistry

    Registrations applied to a package are processed before Hibernate begins to process any attributes, etc.

    Registrations applied to a class are only applied once Hibernate begins to process that class; it will also affect all future processing. However, it will not change previous resolutions to use this newly registered one. Because of this randomness it is recommended to only apply registrations to packages or to use a TypeContributor.

    See Also:
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<? extends JdbcType> value
      The descriptor to register
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int registrationCode
      The type-code under which to register this descriptor.
    • Element Detail

      • value

        Class<? extends JdbcType> value
        The descriptor to register
      • registrationCode

        int registrationCode
        The type-code under which to register this descriptor. Can either add a new descriptor or override an existing one. By default we will use JdbcType.getJdbcTypeCode()