graphql-java-codegen
graphql-java-codegen copied to clipboard
Add annotations to JavaBean getters
Description
Add nonnull and other annotations to the getter method in addition to the field declaration. Some Java Bean introspection tools can only use annotations declared on the getter/setter methods, not on the private fields, so we need to repeat the annotation that was placed on the field on the getter as well to get full introspection with annotations.
Changes were made to:
- [x] Codegen library - Java
- [ ] Codegen library - Kotlin
- [ ] Codegen library - Scala
- [ ] Maven plugin
- [ ] Gradle plugin
- [ ] SBT plugin
@ludovicc looks good. but could you please change the target branch to develop?
@ludovicc can you please fix the build?
Any chance you can fix the build @ludovicc? This would be really useful for me too
Actually, I just realised I need this for Setters as well