Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Last active June 1, 2018 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathurangat/0dd2660249c2b1c3bba35bb4414858d4 to your computer and use it in GitHub Desktop.
Save chathurangat/0dd2660249c2b1c3bba35bb4414858d4 to your computer and use it in GitHub Desktop.
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