Created
September 21, 2018 15:22
-
-
Save eldermoraes/b4beee807addb32777b0b21c74740f24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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