title: How to read all table names generated by hibernate?
body: <p>I'm generating the <code>postgresql</code> table schema using <code>hibernate</code>:</p>
  
  <pre><code>@Entity
  public class MyEntity {
      @Id
      private long id;
  
      private String name;
      private int age;
  
      @Column(name = "testdate")
      private Date thedate;
  }
  </code></pre>
  
  <p>As a result I get:</p>
  
  <pre><code>CREATE TABLE ...
  </code></pre>
  
  <p>The table fields are all created in alphabetic order, no matter how the field order in the <code>@Entity</code> is.</p>
  
  <p>When I add additional fields lateron, they are usually just appended as an extra column in the database, and not inserted in alphabetic order in between.</p>
  
  <p>Question: how can I read all generated table names, in their order of insertion, from the database? And with their generated schema column names? Is that possible at all?</p>
  
  <p>Sidenote: I'm maintaining the data through springs <code>CrudRepository</code> only.</p>