Skip to content

Conversation

@jxnu-liguobin
Copy link
Collaborator

@jxnu-liguobin jxnu-liguobin commented Dec 3, 2020

This update is as follows

  1. Refactoring toString and equals methods(Simplify code bloat caused by large number of fields, decrease by 50%).
  2. For Scala(after that, kotlin will do the same), the builder is no longer generated by default.
  3. Fix bug when setgeneratebuilder:=false, the companion object was not generated.
  4. Template support serializeUsingObjectMapper
  5. remove invalid if in scalaClassGraphqlInterface.ftl and scalaClassGraphqlEnum.ftl

Please check to see if toString keeps its original function(ParametrizedInput and Type). such as
src/test/resources/expected-classes/scala/tostring/QueryPrivateParametrizedInput.scala.txt
src/test/resources/expected-classes/scala/Commit.scala.txt

…used by large number of fields).

2. For Scala(after that, kotlin will do the same), the `builder` is no longer generated by default.
Copy link
Owner

@kobylynskyi kobylynskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jxnu-liguobin, looks good! Will release in 4.0.1 this week

@kobylynskyi kobylynskyi self-assigned this Dec 3, 2020
@kobylynskyi kobylynskyi added this to the 4.0.1 milestone Dec 3, 2020
@kobylynskyi kobylynskyi closed this Dec 3, 2020
@kobylynskyi kobylynskyi reopened this Dec 3, 2020
@kobylynskyi kobylynskyi merged commit ba50f87 into kobylynskyi:master Dec 3, 2020
@jxnu-liguobin jxnu-liguobin deleted the refactor-scala-tostring branch December 9, 2020 03:13
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.

2 participants