Interface NamespaceStrategy
public interface NamespaceStrategy
A strategy to derive a MyBatis namespace from a domainType.
- Author:
- Kazuki Shimizu, Jens Schauder
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getNamespace
(Class<?> domainType) Get a namespace that corresponds to the given domain type.
-
Field Details
-
DEFAULT_INSTANCE
-
-
Method Details
-
getNamespace
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
-