Created
August 6, 2015 18:39
-
-
Save neich/3a0ed02bbb364b5e5fcb to your computer and use it in GitHub Desktop.
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.coovol.api.entity; | |
import lombok.Data; | |
import lombok.EqualsAndHashCode; | |
import javax.validation.constraints.NotNull; | |
import java.util.Date; | |
/** | |
* Created by imartin on 6/08/15. | |
*/ | |
public class User { | |
@Data | |
@EqualsAndHashCode(callSuper = true) | |
public class List extends EntityUUID { | |
@NotNull public String name; | |
@NotNull public String lastName; | |
public String picture; | |
} | |
@Data | |
@EqualsAndHashCode(callSuper = true) | |
public class Public extends List { | |
public String country; | |
public Date creationDate; | |
} | |
@Data | |
@EqualsAndHashCode(callSuper = true) | |
public class Private extends Public { | |
@NotNull public String email; | |
public String postalCode; | |
public String phone; | |
public Date birthDate; | |
} | |
@Data | |
@EqualsAndHashCode(callSuper = true) | |
public class Post extends Private { | |
@NotNull | |
public String password; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment