title: JPA refresh collection
body: <p>I have a collection defined in my entity as follows:</p>
  
  <pre><code>@Entity
  public class User {
  @OneToMany(mappedBy = "user")
  private List&lt;Role&gt; roles = new ArrayList&lt;Role&gt;();
  </code></pre>
  
  <p>Lets say I insert a Role by hand into the database.</p>
  
  <p>When I then call <code>user.getRoles()</code> JPA does not recognize the new object. What do I have to do in order to say JPA to load the values again from the database? (I use EclipseLink)</p>