-
Notifications
You must be signed in to change notification settings - Fork 230
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
Added lombok dependency #8
base: master
Are you sure you want to change the base?
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.
Hi @nirvana124 !
Nice improvement! I agree that adding lombok will decrease boilerplate code.
But, I believe you are messed one thing here:
- MatchInput its just a POJO, it shouldn't know anything about conversion one entity to another
- You are misusing @builder(toBuilder) annotation in Team.java
Best regards,
Maks
@mvoronov Thanks for review. If we are adding any method about conversion in POJO we can consider it as a class and not a POJO :) Can you please elaborate on point 2 ? |
Hi @nirvana124 !
|
Hi @nirvana124 ! |
Well, it also might be a true, but my point mainly was about "toBuilder" option. |
Thanks for your feedback :) toBuilder: You can see there is a team object which is returned by repository. |
|
||
@Entity | ||
@Builder(toBuilder = true) | ||
@Data |
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.
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.
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.
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.
Yeah, that is right @rahilsh!
Added lombok dependency to reduce verbosity of code.