Skip to content

Instantly share code, notes, and snippets.

@cg4jins
Last active December 13, 2018 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cg4jins/992454b038686de7f87d408d1d61eb9f to your computer and use it in GitHub Desktop.
Save cg4jins/992454b038686de7f87d408d1d61eb9f to your computer and use it in GitHub Desktop.
@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