Last active
August 20, 2019 21:53
-
-
Save timjonesdev/325429a5c1c14f2906e422857ae9e7ef to your computer and use it in GitHub Desktop.
Player Model for Reactive Mongo Example
This file contains hidden or 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
| import lombok.AllArgsConstructor; | |
| import lombok.Builder; | |
| import lombok.Data; | |
| import lombok.NoArgsConstructor; | |
| import org.springframework.data.mongodb.core.mapping.Document; | |
| @Data | |
| @Builder | |
| @AllArgsConstructor | |
| @NoArgsConstructor | |
| @Document(collection = "players") | |
| public class Player { | |
| private String name; | |
| private Double score; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment