ngbatis
ngbatis copied to clipboard
PathWrapper orm
in this case: https://github.com/nebula-contrib/ngbatis/blob/master/ngbatis-demo/src/test/java/ye/weicheng/ngbatis/demo/NebulaBasicDaoTests.java#L465
we need to add another condition branch to implement the orm of PathWrapper.
下面代码需要追加一个条件分支来实现 PathWrapper 的 orm
https://github.com/nebula-contrib/ngbatis/blob/master/src/main/java/org/nebula/contrib/ngbatis/handler/ObjectResultHandler.java#L67-L93
Such as:
else if(v instanceof PathWrapper) {
newResult = fillResultByPath( // fillResultByPath is not exists now.
(PathWrapper) v,
newResult,
columnNames,
resultType,
columnName
);
}