Added Support for JPA Entities export. #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
Context
Xcelite is a great java library. As Java developers, we are frequently working with JPA entities.
Then come the need to export jpa data to an excel file.
So instead of having to create more POJO, or having to decorate my JPA entities with more Annotations, I thought we might be better off adding support for jpa annotations to the library.
Features added
This PR currently has the following implementations :
Jpa properties annotated with javax.annotation.Column are going to be exported.
Jpa properties annoted with @manytoone are going to be exported. Note : If a property is annotated with @joincolumn and the name of the join is provided, that name will be used as the name of the column in the excel file.
Although there are lot of things to be improved, let me have your feelings about this.
Thanks for reading
Boris