https://github.com/muhammetgumus/jexcel
Java Custom Annotation Applied Excel Exporter
https://github.com/muhammetgumus/jexcel
annotations apache-poi custom-annotations excel excel-export excelwriter java
Last synced: 3 months ago
JSON representation
Java Custom Annotation Applied Excel Exporter
- Host: GitHub
- URL: https://github.com/muhammetgumus/jexcel
- Owner: muhammetgumus
- Created: 2022-06-12T12:58:09.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T14:04:43.000Z (almost 3 years ago)
- Last Synced: 2025-01-05T09:14:36.172Z (5 months ago)
- Topics: annotations, apache-poi, custom-annotations, excel, excel-export, excelwriter, java
- Language: Java
- Homepage:
- Size: 135 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JEXCEL
This project prevents the repetitive use of similar excel export code blocks in different model classes. In this way, developers will get rid of unnecessary and repetitive code blocks and have a cleaner code.
> Note: `The Employee and Student models added for testing reason. You could delete it as you want`
Using
- Import **@Column** annotation to your model class
- Then annotate the fields that you want to be on exported file
- Set convenient column name and int based column number of the annotation
- **Be careful while setting column number otherwise given same indexes could overwrite each others**
- Inside the your code callwrite(Collection< T > collection)
method of the **ExportWriter** class
- As a function parameter you can pass any collection like List, Set, Queue etc.
- Finally exported excel file will be locate under the your project path.## Examples of different collection types
### List
### Set
### Queue