idea-mini-ibatis icon indicating copy to clipboard operation
idea-mini-ibatis copied to clipboard

Inspection for mismatch of mapper interface and xml

Open eekboom opened this issue 12 years ago • 2 comments

If a method in a mapper interface has no corresponding tag in the XML a warning would be very nice. Same for a mybatis select/update/delete tag without a corresponding java mapper method declaration.

eekboom avatar May 18 '12 15:05 eekboom

I have implemented inspection for interface methods with no corresponding statements and having no MyBatis annotations attached. A quick fix would be nice, I'll try to provide one later. I have deployed the code to JetBrains repo, have a look when it goes public.

ishchenko avatar Jun 06 '12 18:06 ishchenko

Thanks! I think the inspection should be enabled by default. I only found out about it now when I read your comment.

eekboom avatar Aug 17 '12 08:08 eekboom