Annotation Type MultiTenant


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface MultiTenant
    Extension annotation allowing for specifying a class as multitenant, meaning that it will have a surrogate column in its table storing the tenant id.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String column
      Name of the multitenancy column in the table for this class.
      int columnLength
      Length of the multitenancy column for this class.
      String jdbcType
      JDBC Type of the multitenancy column in the table for this class.
    • Element Detail

      • column

        String column
        Name of the multitenancy column in the table for this class.
        Returns:
        The multitenancy column name
        Default:
        "TENANT_ID"
      • columnLength

        int columnLength
        Length of the multitenancy column for this class.
        Returns:
        Length of the multitenancy column.
        Default:
        -1
      • jdbcType

        String jdbcType
        JDBC Type of the multitenancy column in the table for this class.
        Returns:
        The multitenancy column JDBC Type
        Default:
        ""