title: Schema-validation: missing table [game]
body: <p>I think it may be possible dupplicate of this: <a href="https://stackoverflow.com/q/39675714/7947794">Schema-validation: missing table [hibernate_sequences]</a> but I can't figure it out.</p>
  
  <p>So in my <code>application.properties</code> file I have this option: <code>spring.jpa.hibernate.ddl-auto=validate</code> and I receive this error:</p>
  
  <p><code>Schema-validation: missing table [game]</code></p>
  
  <p>Why I am receiving this?</p>
  
  <p>Here is my <code>Game</code> class and <code>User</code> class:</p>
  
  <p>Game:</p>
  
  <pre><code>@Entity
  public class Game {
      @Id
      @Column(name = "GAME_NUMBER")
      @GeneratedValue(strategy = GenerationType.SEQUENCE)
      private long gameNumber;
  
      private int playerScore;
      private int NPCScore;
      private Date datetime;
  
      @ManyToOne
      @JoinColumn(name="USER_ID")
      private User user;
  
      public Game() {}
  
      public Game(int playerScore, int nPCScore, Date datetime) {
          super();
          this.playerScore = playerScore;
          this.NPCScore = nPCScore;
          this.datetime = datetime;
      }
  
      public User getUser() {
          return user;
      }
  } + getters &amp; setters
  </code></pre>
  
  <p>User:</p>
  
  <pre><code>@Entity
  public class User {
      @Id
      @Column(name = "USER_ID")
      @GeneratedValue(strategy = GenerationType.SEQUENCE)
      private long userId;
  
      private String username;
      private String password;
  
      @OneToMany(mappedBy="user",cascade=CascadeType.ALL)
      private List&lt;Game&gt; games;
  
      @ElementCollection
      private List&lt;Date&gt; startSessions;
  
      public User() {}
  
      public User(String username, String password, List&lt;Game&gt; games, List&lt;Date&gt; startSessions) {
          super();
          this.username = username;
          this.password = password;
          this.games = games;
          this.startSessions = startSessions;
      }
  }
  </code></pre>