Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Created December 30, 2017 17:27
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/be45c30ceea8c1d2081040f75fee0ba9 to your computer and use it in GitHub Desktop.
Save chathurangat/be45c30ceea8c1d2081040f75fee0ba9 to your computer and use it in GitHub Desktop.
import javax.persistence.*;
@Entity
@Table(name = "user")
public class User {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String name;
private String country;
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment