Skip to content

Instantly share code, notes, and snippets.

@b1a9id

b1a9id/SakeResponse.java Secret

Last active Sep 13, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.