This content has been marked as final.
Show 2 replies
-
1. Re: jsonItemWriter
richardmoore Dec 8, 2017 12:08 PM (in response to richardmoore)Figured it out.
-
2. Re: jsonItemWriter
cfang Dec 10, 2017 10:20 PM (in response to richardmoore)org.jberet.support.io.JsonItemWriter, in fact, any ItemWriter, takes java.util.List<Object> as input. So in case of JsonItemWriter, any type that can be properly converted to JSON format by Jackson, which is the library used by jberet-support underneath. The data type class is either pretty simple to convert, or contain some JAXB or Jackson annotations to help the mapping. An example class:
jsr352/Movies.java at master · jberet/jsr352 · GitHub
jsr352/StockTrade.java at master · jberet/jsr352 · GitHub
jsr352/StockTradeBase.java at master · jberet/jsr352 · GitHub