title: Hibernate doesn't generate cascade
body: <p>I have a set <code>hibernate.hbm2ddl.auto</code> to create so that Hibernate creates the tables in mysql for me.</p>
  
  <p>However, it doesn't seem that hibernate correctly adds <code>Cascade</code> on the references in the table. <strong>It does however work when I for instance delete a row, and I have a delete cascade as hibernate annotation</strong>. So I guess that means that Hibernate reads the annoation on runtime, and perform cascading manually?</p>
  
  <p>Is that normal behavior?</p>
  
  <p>For instance:</p>
  
  <pre><code>@Entity
  class Report {
      @OneToOne(cascade = CascadeType.ALL)
      public File getPdf() {
      return pdf;
  }
  }
  </code></pre>
  
  <p>Here I have set cascade to ALL. However, when running <code>show create table Report</code></p>
  
  <pre><code>Report | CREATE TABLE `Report` (
    `id` bigint(20) NOT NULL AUTO_INCREMENT,
    `pdf_id` bigint(20) DEFAULT NULL,
    PRIMARY KEY (`id`),
    KEY `FK91B14154FDE6543A` (`pdf_id`),
    CONSTRAINT `FK91B14154FDE6543A` FOREIGN KEY (`pdf_id`) REFERENCES `File` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
  </code></pre>
  
  <p>It doesn't say anything about cascading other then the foreign key. In my opinion, it should have added the <code>ON DELETE CASCADE ON DELETE UPDATE</code></p>