hibernate could not get next sequence value
<p>I have a class that is a table within a postgress database. The class is then extended by the other classes. The main class has the following annotation at the top</p>

<p>@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)</p>

<pre><code>@Entity
@Table(name="policy_action")
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public class PolicyAction {


  @Id
  @GeneratedValue(strategy=GenerationType.TABLE)
  @Column(name="id")
  private int id;
  .....
</code></pre>

<p>the second class </p>

<pre><code>public class myspecialPolicy extends policy {
    ....
}
</code></pre>

<p>when inserting into the database the following error is thrown </p>

<p>org.postgresql.util.PSQLException: ERROR: relation "hibernate_sequence" does not exist</p>

<p>I am not sure how to solve this problem any help will be grateful thanks in advance.</p>