Created
January 21, 2017 21:35
-
-
Save arthurportas/90bbbb74afe128172a613d3c86402a8a to your computer and use it in GitHub Desktop.
User document with Lombok
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
package com.arthurportas.mongodb.example.domain; | |
import lombok.*; | |
import org.springframework.data.annotation.Id; | |
import org.springframework.data.mongodb.core.mapping.Document; | |
/** | |
* Created by arthurportas on 21/01/2017. | |
*/ | |
@Getter | |
@Setter | |
@Builder | |
@NoArgsConstructor | |
@AllArgsConstructor | |
@ToString | |
@Document | |
public class User { | |
@Id | |
private String id; | |
private String firstName; | |
private String lastName; | |
private String email; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment