-
Notifications
You must be signed in to change notification settings - Fork 55
#102 fix NullPointerException when searching for Transient annotation #106
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
#102 fix NullPointerException when searching for Transient annotation #106
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR. Could you add a test case for the fix? You can use existing transient test for this
Codecov Report
@@ Coverage Diff @@
## master #106 +/- ##
============================================
+ Coverage 65.73% 65.75% +0.01%
Complexity 366 366
============================================
Files 37 37
Lines 2014 2015 +1
Branches 296 297 +1
============================================
+ Hits 1324 1325 +1
Misses 562 562
Partials 128 128
Continue to review full report at Codecov.
|
I added a method in Entity |
@chanhengseang3 Please use https://github.com/introproventures/graphql-jpa-query/blob/master/graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/model/calculated/CalculatedEntity.java test model to make the changes to entity model. Then use https://github.com/introproventures/graphql-jpa-query/blob/master/graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/CalculatedEntityTests.java to run tests. Also, add another test to https://github.com/introproventures/graphql-jpa-query/blob/master/graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/impl/IntrospectionUtilsTest.java to make sure that IntrospectionUtils can handle this case. |
I made change of test.
|
@chanhengseang3 LGTM! I am merging this into master branch. Thank you very much for your contribution! |
fix Issues #102
When ever the
Entity
has methods that ispublic
and have method name starting withset
, building schema will fail. This version make a small change ( bypass check for read properties ) so that build can pass.