Skip to content

Instantly share code, notes, and snippets.

@chathurangat

chathurangat/User.java

Last active Jun 1, 2018
Embed
What would you like to do?
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Setter(AccessLevel.PUBLIC)
@Getter(AccessLevel.PUBLIC)
@Entity
@Table(name = "users")
public class User extends Auditable<String>
{
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long userId;
private String name;
private String email;
private String country;
private String website;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment