Annotation Type MysqlExtendedVarchar


  • @Target(FIELD)
    @Retention(RUNTIME)
    public @interface MysqlExtendedVarchar
    Enables varchar on MySQL for longer string fields.

    In general database columns for string fields with a maximum length of up to 85 characters do get type varchar, longer string fields do get text, mediumtext etc. This annotation increases the limit from 85 characters to 16382 characters.

    This annotation is applicable to string fields only. When applying it to other features or when connecting to databases other than MySQL, there is no effect at all.