-
Notifications
You must be signed in to change notification settings - Fork 55
Flexible description annotation #63
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
Flexible description annotation #63
Conversation
@molexx Thank you for PR. It looks good to me. I would just like ask if you can make a separate test entity class for testing annotation on methods so the tests cover both use cases? |
@molexx The reason is that I would like to keep unit tests and associated entities isolated from each other so that other folks PRs don't start clashing. |
Codecov Report
@@ Coverage Diff @@
## master #63 +/- ##
============================================
+ Coverage 60.75% 60.83% +0.08%
- Complexity 250 258 +8
============================================
Files 21 21
Lines 1595 1629 +34
Branches 249 258 +9
============================================
+ Hits 969 991 +22
- Misses 521 529 +8
- Partials 105 109 +4
Continue to review full report at Codecov.
|
I think I've covered all use cases - method annotations are used in I was trying to create minimal clutter, but sure: I'll duplicate the model classes to a new package and revert the changes in the existing ones. |
@molexx Thank you! You covered all the use cases. Great PR! I will merge it with the changes. |
I'm trying to split a separate set of models out to my own package and it's getting quite messy. If every PR makes its own copy of the test models the repo is going to get very cluttered. Creating a copy of the models in
IMHO it's not worth this effort and clutter and would be better to efficiently reuse the existing models where possible as I have already done. I can push ahead if you really want, if so please advise how to organise the packaging. |
@molexx No worries. I will merge as is. It is important that the tests are there. We can refactor if needed. Thank you! |
Allow the @GraphQLDescription to be placed on getter methods as well as fields, and search for it if it is in a different place to the JPA annotations.
As well as allowing flexibility in developer's/teams preferences this enables support for Entity generation tools such as HibernateTools.