Skip to content

Added Support for JPA Entities export. #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Added Support for JPA Entities export. #8

wants to merge 9 commits into from

Conversation

boriswaguia
Copy link

@boriswaguia boriswaguia commented Oct 11, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant