title: o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: relation "sessions" does not exist
body: <p>I was trying to run API using Spring Framework. While working on it I got above error message when I tried running endpoints.
  Below is the class that I tried testing on Postman. In which I have used <strong>sessions</strong> table from the PostgreSQL data base</p>
  <pre><code>package com.pluralsight.conferencedemo.models;
  
  
  import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  import javax.persistence.*;
  import java.util.List;
  
  @Entity(name=&quot;sessions&quot;)
  @JsonIgnoreProperties({&quot;hibernateLazyInitializer&quot;,&quot;handler&quot;})
  public class Session {
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long session_id;
      private String session_name;
      private String session_description;
      private Integer session_length;
  
      @ManyToMany
      @JoinTable(
              name=&quot;session_speakers&quot;,
              joinColumns = @JoinColumn(name = &quot;session_id&quot;),
              inverseJoinColumns = @JoinColumn(name= &quot;speaker_id&quot;))
      private List&lt;Speaker&gt; speakers;
  
      public Session(){
  
      }
  
      public List&lt;Speaker&gt; getSpeakers() {
          return speakers;
      }
  
      public void setSpeakers(List&lt;Speaker&gt; speakers) {
          this.speakers = speakers;
      }
  
      public Long getSession_id() {
          return session_id;
      }
  
      public void setSession_id(Long session_id) {
          this.session_id = session_id;
      }
  
      public String getSession_name() {
          return session_name;
      }
  
      public void setSession_name(String session_name) {
          this.session_name = session_name;
      }
  
      public String getSession_description() {
          return session_description;
      }
  
      public void setSession_description(String session_description) {
          this.session_description = session_description;
      }
  
      public Integer getSession_length() {
          return session_length;
      }
  
      public void setSession_length(Integer session_length) {
          this.session_length = session_length;
      }
  }
  </code></pre>
  <p>And the Error message that I got in <strong>Postman</strong> is</p>
  <pre><code>{
      &quot;timestamp&quot;: &quot;2022-01-03T21:28:36.793+00:00&quot;,
      &quot;status&quot;: 500,
      &quot;error&quot;: &quot;Internal Server Error&quot;,
      &quot;path&quot;: &quot;/api/v1/sessions&quot;
  }
  </code></pre>
  <p>While Error message in <strong>IntelliJ</strong> when I tried GET request from Postman is:</p>
  <pre><code>2022-01-04 02:58:36.695  WARN 10200 --- [nio-8080-exec-2] o.h.engine.jdbc.spi.SqlExceptionHelper   : SQL Error: 0, SQLState: 42P01
  2022-01-04 02:58:36.695 ERROR 10200 --- [nio-8080-exec-2] o.h.engine.jdbc.spi.SqlExceptionHelper   : ERROR: relation &quot;sessions&quot; does not exist
    Position: 179
  2022-01-04 02:58:36.758 ERROR 10200 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet] with root cause
  
  org.postgresql.util.PSQLException: ERROR: relation &quot;sessions&quot; does not exist
  </code></pre>