-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Methods have been added to be able to write a CSV file or a list of o…
…bjects to an Excel file that already exists
- Loading branch information
1 parent
3fd86f9
commit a5f3271
Showing
5 changed files
with
128 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/samples/convertObjectsToExcelFileSample/Office.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package samples.convertObjectsToExcelFileSample; | ||
|
||
import annotations.ExcelBodyStyle; | ||
import annotations.ExcelField; | ||
import annotations.ExcelHeaderStyle; | ||
import lombok.AllArgsConstructor; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@ToString | ||
@ExcelHeaderStyle(autoSize = true) | ||
@ExcelBodyStyle | ||
public class Office { | ||
@ExcelField(name = "CITY") | ||
private String city; | ||
@ExcelField(name = "PROVINCE") | ||
private String province; | ||
@ExcelField(name = "NUMBER OF STATIONS") | ||
private Integer numStations; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters