package org.carlson.hockeystats.domain;

/**
 * Created by ryancarlson on 5/4/15.
 */
public class Game
{
}

@@ -38,71 +38,1964 @@
 n;%0A%0A
-/**%0A * Created by ryancarlson on 5/4/15.%0A */%0Apublic class Game%0A%7B
+import org.hibernate.annotations.Type;%0Aimport org.joda.time.DateTime;%0A%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.FetchType;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.JoinColumn;%0Aimport javax.persistence.ManyToOne;%0Aimport javax.persistence.Table;%0Aimport java.util.UUID;%0A%0A/**%0A * Created by ryancarlson on 5/4/15.%0A */%0A@Entity%0A@Table(name=%22games%22)%0Apublic class Game%0A%7B%0A%0A%09@Id%0A%09@Type(type=%22pg_uuid%22)%0A%09UUID id;%0A%0A%09@ManyToOne(fetch= FetchType.LAZY)%0A%09@JoinColumn(name=%22home_team_id%22)%0A%09Team homeTeam;%0A%0A%09@ManyToOne(fetch= FetchType.LAZY)%0A%09@JoinColumn(name=%22away_team_id%22)%0A%09Team awayTeam;%0A%0A%09int homeTeamScore;%0A%0A%09int awayTeamScore;%0A%0A%09boolean homeTeamShootoutWin;%0A%0A%09boolean awayTeamShootoutWin;%0A%0A%09DateTime gameTimestamp;%0A%0A%0A%09public UUID getId()%0A%09%7B%0A%09%09return id;%0A%09%7D%0A%0A%09public void setId(UUID id)%0A%09%7B%0A%09%09this.id = id;%0A%09%7D%0A%0A%09public Team getHomeTeam()%0A%09%7B%0A%09%09return homeTeam;%0A%09%7D%0A%0A%09public void setHomeTeam(Team homeTeam)%0A%09%7B%0A%09%09this.homeTeam = homeTeam;%0A%09%7D%0A%0A%09public Team getAwayTeam()%0A%09%7B%0A%09%09return awayTeam;%0A%09%7D%0A%0A%09public void setAwayTeam(Team awayTeam)%0A%09%7B%0A%09%09this.awayTeam = awayTeam;%0A%09%7D%0A%0A%09public int getHomeTeamScore()%0A%09%7B%0A%09%09return homeTeamScore;%0A%09%7D%0A%0A%09public void setHomeTeamScore(int homeTeamScore)%0A%09%7B%0A%09%09this.homeTeamScore = homeTeamScore;%0A%09%7D%0A%0A%09public int getAwayTeamScore()%0A%09%7B%0A%09%09return awayTeamScore;%0A%09%7D%0A%0A%09public void setAwayTeamScore(int awayTeamScore)%0A%09%7B%0A%09%09this.awayTeamScore = awayTeamScore;%0A%09%7D%0A%0A%09public boolean isHomeTeamShootoutWin()%0A%09%7B%0A%09%09return homeTeamShootoutWin;%0A%09%7D%0A%0A%09public void setHomeTeamShootoutWin(boolean homeTeamShootoutWin)%0A%09%7B%0A%09%09this.homeTeamShootoutWin = homeTeamShootoutWin;%0A%09%7D%0A%0A%09public boolean isAwayTeamShootoutWin()%0A%09%7B%0A%09%09return awayTeamShootoutWin;%0A%09%7D%0A%0A%09public void setAwayTeamShootoutWin(boolean awayTeamShootoutWin)%0A%09%7B%0A%09%09this.awayTeamShootoutWin = awayTeamShootoutWin;%0A%09%7D%0A%0A%09public DateTime getGameTimestamp()%0A%09%7B%0A%09%09return gameTimestamp;%0A%09%7D%0A%0A%09public void setGameTimestamp(DateTime gameTimestamp)%0A%09%7B%0A%09%09this.gameTimestamp = gameTimestamp;%0A%09%7D
 %0A%7D%0A

Add Game domain object