Skip to content

Allow generating any namespace in MyBatisDataAccessStrategy [DATAJDBC-178] #411

Closed
@spring-projects-issues

Description

@spring-projects-issues

Kazuki Shimizu opened DATAJDBC-178 and commented

In current implementation, namespace rule("FQCN of domain type" + "Mapper") cannot customize.
I will propose to add a naming strategy for allowing to customize namespace rule.

e.g.)

public interface MyBatisNamingStrategy {
	default String getNamespace(Class<?> domainType) {
		return domainType.getName() + "Mapper";
	}
}

Referenced from: pull request #44, and commits 45a6d34, 01a4bbd, c7958f8

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions