Skip to content

Instantly share code, notes, and snippets.

@b1a9id
Last active September 13, 2020 12:11
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 b1a9id/14bbd9ec81351e8a2fe3a2eb272b7fa6 to your computer and use it in GitHub Desktop.
Save b1a9id/14bbd9ec81351e8a2fe3a2eb272b7fa6 to your computer and use it in GitHub Desktop.
springdoc-openapiサンプルのSakeResponse.java
@Value
public class SakeResponse {
Integer id;
String name;
String brewingName;
public static SakeResponse newInstance(Sake sake) {
return new SakeResponse(sake.getId(), sake.getName(), sake.getBrewingName());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment