Skip to content
Arnaud Roger edited this page Jun 3, 2015 · 4 revisions

Quick start

File file = new File("file.xls");
SheetMapper<DbObject> mapper = 
        SheetMapperFactory
                .newInstance()
                .newMapper(DbObject.class);

try (InputStream is = new FileInputStream(file);
        Workbook workbook = new HSSFWorkbook(is)){
    mapper.stream(workbook.getSheetAt(0)).forEach(System.out::println);
}

Property Mapping

1 - n relationship works the same as JdbcMapper

Clone this wiki locally