Interface NamespaceStrategy


public interface NamespaceStrategy
A strategy to derive a MyBatis namespace from a domainType.
Author:
Kazuki Shimizu, Jens Schauder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NamespaceStrategy
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    getNamespace(Class<?> domainType)
    Get a namespace that corresponds to the given domain type.
  • Field Details

  • Method Details

    • getNamespace

      default String getNamespace(Class<?> domainType)
      Get a namespace that corresponds to the given domain type.

      By default, the namespace is based on the class of the entity plus the suffix "Mapper".

      Parameters:
      domainType - Must be non null.
      Returns:
      a namespace that correspond domain type