-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
enhancementImprove a feature or add a new featureImprove a feature or add a new feature
Milestone
Description
I'd like support for default methods on mapper interfaces. Currently if a method is not implemented (even if it is a default method) an exception is thrown:
if (ms == null) {
if(method.getAnnotation(Flush.class) != null){
name = null;
type = SqlCommandType.FLUSH;
} else {
throw new BindingException("Invalid bound statement (not found): " + statementName);
}
}I believe it would be relatively easy to add a type SqlCommandType.ABSTRACT and call the underlying default function.
It is a useful feature because it allows you to put helper methods on mappers.
kazuki43zoo, VaverDariush, fenfenxu, awephy, hashken and 3 more
Metadata
Metadata
Assignees
Labels
enhancementImprove a feature or add a new featureImprove a feature or add a new feature