title: An error is displayed saying "error performing isolated work" after upgrading to hibernate 5.6.9.Final (JPA 2.2)
body: <p>I have a java project (java 8) and I'm using hibernate in order to perform actions against my database (postgress).</p>
  <p>hibernate version 5.6.9.Final
  JPA version 2.2</p>
  <p>I have an abstract class that all my entity classes are extended to:</p>
  <pre><code>package com.imperva.itp.domain;
  
  import javax.persistence.*;
  
  
  @MappedSuperclass
  public abstract class BaseEntry {
      private Long id;
  
      @Id
      @GeneratedValue(strategy = GenerationType.TABLE, generator = &quot;itpGenerator&quot;)
      @TableGenerator(name = &quot;itpGenerator&quot;,
              // the first 999 entries are saved for items that come with the system
              initialValue = 1000,
              allocationSize = 100
      )
      @Column(name=&quot;ID&quot;, insertable = false, updatable = false)
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  }
  </code></pre>
  <p>when I'm running my junit, I keep getting the error:</p>
  <pre><code>org.hibernate.exception.SQLGrammarException: error performing isolated work
  ERROR 2022-06-05 15:27:22,436 [main] org.hibernate.id.enhanced.TableGenerator - HHH000351: Could not read or init a hi value
  org.postgresql.util.PSQLException: ERROR: relation &quot;itpserver.itpgenerator&quot; does not exist
  </code></pre>
  <p>in previous version of hibernate (5.0) it worked, but I think that now in the latest version of hibernate the syntax might be different but I cannot find any proper answer anywhere</p>
  <p>any ideas?</p>
  <p>I tried following the link below but no success</p>
  <p><a href="https://stackoverflow.com/questions/22472292/how-to-insert-new-items-with-hibernate">How to insert new items with Hibernate?</a></p>
  <p><a href="https://stackoverflow.com/questions/31506805/org-postgresql-util-psqlexception-error-relation-app-user-does-not-exist">org.postgresql.util.PSQLException: ERROR: relation &quot;app_user&quot; does not exist</a></p>
  <p>Adding here additional info that might be relevant:</p>
  <p>the hibernate bean in my spring xml:</p>
  
  <p>
  
  
  
  
  org.hibernate.dialect.PostgresPlusDialect
  org.hibernate.cfg.AnnotationConfiguration
  false
  update
  true
  ${itp.db.username}
  
  
  </p>