Module io.ebean.api

Interface DbConstraintNaming.MaxLength

  • Enclosing class:
    DbConstraintNaming

    public static interface DbConstraintNaming.MaxLength
    Defines how constraint names are shortened if required based on platform limitations.
    • Method Detail

      • maxLength

        String maxLength​(String constraintName,
                         int count)
        Truncate or shorten the constraint name to support DB platform limitations.

        There is a default implementation of this which is used if an implementation is not specified.