Demonstrates Excel file creation using Apache POI and Java 11.
One Excel file (workbook) is created, containing one sheet per Java domain class (entity type). In each sheet one row is created per domain object (entity instance). One column corresponds to one field in the domain class.
Two entity types are used (Employee and Period), resulting in an Excel workbook containing two sheets.
Usage:
mvn clean install.- Run
WorkbookWriterTestclass. - Expect file
poi-generated-file.xlsxto be created in thetargetfolder.