title: "ORA-01754: A table may contain only one column of type LONG" with only one Long type
body: <p>I am using hibernate with Oracle and tables are updated using hbm2ddl option at runtime before service starts.</p>
  
  <p>Today, I started facing a weird issue where I came to know that table T has two long columns which is not supported in the Oracle.</p>
  
  <pre><code>@Table(name="table_t")
  @Entity
  public class T extends BaseEntity{
  
  @Id
  Long id;
  
  @Column(name="col1")
  Long col1;
  
  @Column(name="col2")
  Integer col2;
  
  }
  </code></pre>
  
  <p>After facing the issue, I changed datatype of col1 to Integer(tables were not created in the DB) and tried re-running the application but it still fails with the same error.</p>
  
  <p>Current schema appears like this: </p>
  
  <pre><code>@Table(name="table_t")
  @Entity
  public class T extends BaseEntity{
  
  @Id
  Long id;
  
  @Column(name="col1")
  Integer col1;
  
  @Column(name="col2")
  Integer col2;
  
  }
  </code></pre>
  
  <p>Why is it happening? I tried cleaning, rebuilding and all.</p>
  
  <p>Is meta info already stored somewhere? Or I am missing something else?</p>
  
  <p>Thanks,</p>