mybatis使用小贴士(二)
2015-07-24 08:57:24
·
作者:
·
浏览: 2
要使用mapper文件B中所定义的resultmap时,是可以直接使用的,请勿在文件B中重复定义resultmap。 具体使用方法是: 例如mapper A的namespace是com.blog.test,其中定义的resultmapid是testbean,那么,在文件B中,如果要用到这个resultmap,则用它的全名即可,也就是com.blog.test.testbean(namespace+resultmapid)
mapper文件A
……
mapper文件B