我可以在 Ibatis 中将 getter 定义为结果的属性吗?
喜欢
<resultMap id=.... class=...>
<result property="getSomeValue" column="valueColumn"/>
....
到目前为止我还没有在文档中看到这一点。
最佳答案
假设 setter/getter 是
public Value getSomeValue(){
...
}
那么结果将如下所示
<result property="someValue" column="valueColumn"/>
关于java - Ibatis:将 getter 定义为结果的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3233074/