ngbatis icon indicating copy to clipboard operation
ngbatis copied to clipboard

PathWrapper orm

Open CorvusYe opened this issue 11 months ago • 3 comments

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
    );
  } 

CorvusYe avatar Sep 13 '23 04:09 CorvusYe