Commit 6dedebc5 by Antti Tönkyrä

fix small problems with JPA :)

1 parent 96f6e6d1
......@@ -25,7 +25,7 @@ public class Tournament extends GenericEntity implements Serializable {
@Column(name="talyn_tournament_id", nullable=true)
private Integer talynTournamentId;
@Column(name = "event_id", nullable = false)
@JoinColumn(name = "event_id", nullable = false)
private LanEvent lanEvent;
@Column(name="tournament_name")
......
......@@ -36,7 +36,7 @@ public class TournamentGame extends GenericEntity implements Serializable {
@Column(name = "expected_single_game_duration")
private Integer expectedSingleGameDuration;
@Column(name = "event_id", nullable = false)
@JoinColumn(name = "event_id", nullable = false)
private LanEvent lanEvent;
@OneToMany
......
......@@ -44,7 +44,7 @@ public class TournamentMatch extends GenericEntity implements Serializable {
private Date endTime;
@OneToMany
@OrderBy("ranking")
@OrderBy("rank")
private List<TournamentMatchResult> matchResults;
public TournamentMatch() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!