-
Notifications
You must be signed in to change notification settings - Fork 6
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
Should use lombok for generating toString
and hashCode
#68
Comments
I am using a maven plugin Today, here is the configuration to generate |
If you couldn't do this, Id be very questionable about the library joelittlejohn/jsonschema2pojo#524 but it looks like you can |
That is not a nice thing to say. Please be respectful. As @rjalander noted, generated code via schema2pojo does add Lines 72 to 79 in 9f4e193
@rjalander perhaps Also, @xibz, even though I'm a fan of Lombok it doesn't make sense to add it to this project, nor any other source code generator driven by an annotation processor because this project uses its own source code generator. |
I did not include toString because in these unit tests, I am comparing the expected and actual objects instead of strings for the generated events |
|
Yes the
But I think we can still implement toString() method too, as it invokes only |
Right now model classes do not override these methods making,
equals
, a little more complicated. Lombok can make this easy.The text was updated successfully, but these errors were encountered: