Skip to content

Instantly share code, notes, and snippets.

@eldermoraes
Created September 21, 2018 15:17
Show Gist options
  • Save eldermoraes/bb86fa94adb53206caa37f8cd1900748 to your computer and use it in GitHub Desktop.
Save eldermoraes/bb86fa94adb53206caa37f8cd1900748 to your computer and use it in GitHub Desktop.
@Entity
public class Player implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String name;
private Long rank;
public Player(){
}
public Player(Long id, String name, Long rank) {
this.id = id;
this.name = name;
this.rank = rank;
}
#Getters, Setters, equals, toString...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment