Last active
December 13, 2018 14:41
-
-
Save cg4jins/992454b038686de7f87d408d1d61eb9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Data | |
@Builder | |
public class ShopResponse { | |
private long id; | |
private String name; | |
} | |
----------------------------------------------------- | |
public class ShopResponseBuilder { | |
public static ShopResponse create(Shop shop){ | |
return ShopResponse.builder() | |
.id(shop.getId()) | |
.name(shop.getName()) | |
.build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment