title: One-to-Many Unidirectional Parent-Child ID Cascade Save
body: <p>When trying to save an ID from my parent class into a child class, I keep getting the error
  "ERROR - Field 'parent_id' doesn't have a default value"</p>
  
  <p>I have tried all types of mappings. I am using annotations. </p>
  
  <p>Any help on this would be appreciated</p>
  
  <p>Parent:</p>
  
  <pre><code>      @Id
        @Column(name="id")
        @GeneratedValue(strategy=GenerationType.AUTO)
        private long id;
        @Column(name="description")
        private String description;
        @OneToMany
        @Cascade(value= {org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.DELETE})
        @JoinColumn(name="parent_id")
        private List&lt;Child&gt; children;
  </code></pre>
  
  <p>Child:</p>
  
  <pre><code>  @Id
    @Column(name="id")
    @GeneratedValue(strategy=GenerationType.AUTO)
    private long id;
    @Column(name="description")
    private String description;
  </code></pre>
  
  <p>Thanks.</p>