Skip to content

Commit

Permalink
Merge 0f7a527 into 15b5144
Browse files Browse the repository at this point in the history
  • Loading branch information
bukajsytlos committed Jan 6, 2019
2 parents 15b5144 + 0f7a527 commit 9d89f19
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
Expand Down Expand Up @@ -43,13 +42,13 @@ public int getPlayerId() {
return playerId;
}

@ManyToOne(fetch = FetchType.LAZY)
@ManyToOne(fetch = FetchType.LAZY, optional = false)
@JoinColumn(name = "player_id", insertable = false, updatable = false)
public Player getPlayer() {
return player;
}

@OneToOne
@ManyToOne(fetch = FetchType.LAZY, optional = false)
@JoinColumn(name = "achievement_id")
public Achievement getAchievement() {
return achievement;
Expand Down

0 comments on commit 9d89f19

Please sign in to comment.