Skip to content

Instantly share code, notes, and snippets.

@neich
Created August 6, 2015 18:39
Show Gist options
  • Save neich/3a0ed02bbb364b5e5fcb to your computer and use it in GitHub Desktop.
Save neich/3a0ed02bbb364b5e5fcb to your computer and use it in GitHub Desktop.
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