mybatis / mybatipse

Eclipse plugin adding support for MyBatis SQL Mapper Framework.
Eclipse Public License 1.0
332 stars 91 forks source link

Select statement used in nested result but not declared in interface causes a warning #72

Closed rsprinkle closed 5 years ago

rsprinkle commented 7 years ago

A select statement that does not have a matching method in the mapper interface generates a warning even when it is used as part of a nested select in a resultMap.

I do not think the warning should be present if the statement is used within a mapper.

harawata commented 7 years ago

Hi,

The warning is not about whether the statement is used, but about if there is a matching Java method in the corresponding mapper interface (mainly to avoid simple mistakes like typos). I believe the current behavior is reasonable because...

kazuki43zoo commented 6 years ago

@rsprinkle Could you confirm @harawata 's comment?

harawata commented 5 years ago

Assuming my comment was a satisfactory answer. :D