title: Foreign key null when persisting one to many unidirectional relationship
body: <h2>Context</h2>
  
  <p>I have 2 entities, mapped like this:</p>
  
  <pre><code>@Entity
  public class User {
  
  @Id
  private String mail;
  
  @OneToMany(cascade={CascadeType.REMOVE} fetch=FetchType.EAGER)
  private Set&lt;Food&gt; foods;
  </code></pre>
  
  <p>and Food:</p>
  
  <pre><code>@Entity
  public class Food{
  
  @Id
  @GeneratedValue(strategy=GenerationType.AUTO)
  private int id;
  </code></pre>
  
  <p>My Test:</p>
  
  <pre><code>@Test   
  public void testPersistUserWithFood() throws Exception{
    //I create and persist the user
    User user = new User ("@someone");
    Session sess = HibernateUtil.getSessionFactory().openSession();
    Transaction tx = sess.beginTransaction();
    sess.save(user);
    tx.commit();
    sess.close();      
  
    //Now I create de food and set the relation in object schema
    Food foo = new Food();
    user.getFoods.add(foo);
  
    //I persist the food in the same way than user, with session, transaction and so on.
  
    //Then I retrieve the user from DB
    sess = HibernateUtil.getSessionFactory().openSession();
    User userRetrieved =(User) sess.createCriteria(User.class)
                   .add(Restrictions.idEq("@someone")).uniqueResult();
    sess.close();
  
    //Finally assert
    assertEquals(user.getFoods(), userRetrieved.getFoods());
  
  }
  </code></pre>
  
  <h1>The problem</h1>
  
  <p>The test fails, because the call: userRetrieved.getFoods() return a null list.
  When I have debuged, I saw the id_User foreing column in table Food always null. 
  If the relationship is oneToMany bidirectional the column id_User is not null, because I add user property in Food class.</p>
  
  <p>Thanks for your help!</p>
  
  <p>Note: I am using hibernate 4.3.8, jUnit 4 and java 8</p>