title: How to generate a sequence in a specific schema with hibernate?
body: <p>I'd like to autogenerate a <code>sequence</code> using <code>hibernate</code>:</p>
  
  <pre><code>    @Entity
      @Table(name = "my_entity", schema = "test")
      public static class MyEntity {    
          private static final String SEQUENCE = "my_seq";
  
          @Id
          @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = SEQUENCE)
          @SequenceGenerator(name = SEQUENCE, sequenceName = SEQUENCE, schema = "test")
          private Long id;
       }
  </code></pre>
  
  <p>Result: the sequence is generated in schema <code>public</code>. Why?</p>