Skip to content

Instantly share code, notes, and snippets.

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