Skip to content

Instantly share code, notes, and snippets.

@tkstone
Created April 23, 2019 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkstone/c472c8dab7a4ff1ecbf47d746eeed8d9 to your computer and use it in GitHub Desktop.
Save tkstone/c472c8dab7a4ff1ecbf47d746eeed8d9 to your computer and use it in GitHub Desktop.
import org.springframework.batch.item.ItemProcessor;
import test.vo.SourceVO;
import test.vo.TargetVO;
public class TestProcessor implements ItemProcessor<SourceVO, TargetVO> {
@Override
public TargetVO process(SourceVO item) throws Exception {
TargetVO targetVO = new TargetVO();
targetVO.new_col1 = item.col1;
targetVO.new_col2 = item.col2;
targetVO.new_col3 = item.col3;
return targetVO;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment