Created
May 27, 2018 03:34
-
-
Save fabianogoes/46cade7e83a6b464c8a4b8bb19514ef4 to your computer and use it in GitHub Desktop.
Person
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.Builder; | |
| import lombok.Data; | |
| import org.springframework.data.mongodb.core.mapping.Document; | |
| import java.util.List; | |
| @Data | |
| @Builder | |
| @Document | |
| public class Person { | |
| private String id; | |
| private String name; | |
| private String ssn; | |
| private List<Address> addresses; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment