-
-
Save b1a9id/14bbd9ec81351e8a2fe3a2eb272b7fa6 to your computer and use it in GitHub Desktop.
springdoc-openapiサンプルのSakeResponse.java
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
@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