I wonder if is possible to manually set writecount property on a batchlet in order to log result on STEP_EXECUTION.WRITECOUNT field's table.
This is my pseudo code
@Inject
EntityManager entityManager;
@Inject
private Logger logger;
@Transactional(Transactional.TxType.REQUIRED)
public void executeQuery(String query) {
final int output = entityManager.createNativeQuery(query).executeUpdate();
logger.info("rows updated: {}", output);
}