title: ManyToOne OneToMany JPA mapping not working right
body: <p>It seems I have a problem with OneToMany, ManyToOne mapping. </p>
  
  <p>I'm using a CrudRepository named "ur" here:</p>
  
  <pre><code>ur.save(new User("zx","z", "a", "email@email.com", "Baa")); //userRepo save
  User u1 = ur.findOneByUserName("Bx");
  MyToken t1 = new MyToken("X5");
  u1.addToken(t1);
  ur.save(u1);
  MyToken t2 = TokenRepo.findOneByToken("X5"); // a different crudRepository
  String foundUser = t2.getUser().getUserName(); // THIS "user" is null.
  </code></pre>
  
  <p>relevant sections of User.java (extends AbstractPersistable&lt;Long&gt;):</p>
  
  <pre><code>@OneToMany(fetch = FetchType.EAGER, cascade={CascadeType.ALL}, mappedBy = "user")
  private Set&lt;Role&gt; roles = new HashSet&lt;Role&gt;(1);
  
  @OneToMany(fetch = FetchType.EAGER, cascade={CascadeType.ALL}, mappedBy = "user")
  private Set&lt;MyToken&gt; token = new HashSet&lt;MyToken&gt;();
  </code></pre>
  
  <p>MyToken.java (extends AbstractPersistable&lt;Long&gt;):</p>
  
  <pre><code> @ManyToOne(fetch = FetchType.EAGER, cascade={CascadeType.ALL})
   @JoinColumn(name="user") // commenting this out or not does nothing...
      private User user;
  </code></pre>
  
  <p>My debugger says 'user' is 'null' at line "String foundUser" even though that should be completely false according to the code.</p>
  
  <p>As you can see, all is "eager" so I don't see why MyToken.setUser() is not automatically done. How are they not linked already? AnyInitiatedToken.getUser() should not be null if you already did User.addToken, and UserRepo.save().</p>
  
  <p>NOTE: I have also tried .LAZY for the MyToken.java and Role.java class (but still doesn't work).</p>