title: Playframework : The JPA context is not initialized. JPA Entity Manager automatically
body: <p>I keep receiving this error although my Bootstrap class looks like this:</p>
  
  <pre><code>@OnApplicationStart 
  public class Bootstrap extends Job { 
      @Override
      public void doJob() {
          ...
          user.save();
      }
  }
  </code></pre>
  
  <p>My User class looks like this:</p>
  
  <pre><code>@Entity
  public class User extends Model {
  ...
  </code></pre>
  
  <p>The @Entity annotation is javax.persistence.Entity. The Model is play.db.jpa.Model.</p>
  
  <p>I'm not doing anything with threads. How do I initialize the JPA context in Play!</p>