title: playframework - package javax.persistence does not exist
body: <p>I have Issue with using database
  I was going with this tutorial
  <a href="http://vimeo.com/58969923#" rel="nofollow">http://vimeo.com/58969923#</a> (one from playframework.com page)
  in the model:</p>
  
  <p>play-2.2.1/jcirs/app/models/MedicalIncident.java</p>
  
  <p>public class MedicalIncident extends Model{}</p>
  
  <p>I am trying to use Entity. For that I have to import:
  javax.persistence.* and play.db.ebean.*
  but none of them can be found. 
  The error is</p>
  
  <blockquote>
    <p>package javax.persistence does not exist </p>
  </blockquote>
  
  <p>What should I do?
  Use any other database engine? Or should download some dependency.
  I would like to go with playframework best way.
  Please help.</p>
  
  <p>My configuration
  application.conf:</p>
  
  <pre><code> db.default.driver=org.h2.Driver
   db.default.url="jdbc:h2:mem:play"
   ebean.default="models.*"
  </code></pre>
  
  <p>stack trace:</p>
  
  <pre><code>[jcirs] $ run 8081
  
  --- (Running the application from SBT, auto-reloading is enabled) ---
  
  [info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:8081
  
  (Server started, use Ctrl+D to stop and go back to the console...)
  
  [info] Compiling 5 Scala sources and 5 Java sources to /home/daniel/play-2.2.1/jcirs/target/scala-2.10/classes...
  [error] /home/daniel/play-2.2.1/jcirs/app/models/MedicalIncident.java:4: error: package javax.persistence does not exist
  [error] import javax.persistence.*;
  [error] ^
  [error] /home/daniel/play-2.2.1/jcirs/app/models/MedicalIncident.java:6: error: package play.db.ebean does not exist
  [error] import play.db.ebean.*;
  [error] ^
  [error] /home/daniel/play-2.2.1/jcirs/app/models/MedicalIncident.java:14: error: cannot find symbol
  [error] public class MedicalIncident extends Model {
  [error]                                      ^
  [error]   symbol: class Model
  [error] /home/daniel/play-2.2.1/jcirs/app/models/MedicalIncident.java:13: error: cannot find symbol
  [error] @Entity
  [error]  ^
  [error]   symbol: class Entity
  [error] /home/daniel/play-2.2.1/jcirs/app/models/MedicalIncident.java:15: error: cannot find symbol
  [error]     @id
  [error]      ^
  [error]   symbol:   class id
  [error]   location: class MedicalIncident
  [error] /home/daniel/play-2.2.1/jcirs/app/controllers/MedicalIncident.java:21: error: cannot find symbol
  [error]         MedicalIncident medical_incident = Form.form(MedicalIncident.class).bindFormRequest().get();
  [error]                                            ^
  [error]   symbol:   variable Form
  [error]   location: class MedicalIncident
  [error] 6 errors
  [error] (compile:compile) javac returned nonzero exit code
  [error] application - 
  
  ! @6gfjpj0cf - Internal server error, for (GET) [/] -&gt;
  
  play.PlayExceptions$CompilationException: Compilation error[error: package javax.persistence does not exist]
          at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
          at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14$$anonfun$apply$16.apply(PlayReloader.scala:304) ~[na:na]
          at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
          at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:304) ~[na:na]
          at play.PlayReloader$$anon$1$$anonfun$reload$2$$anonfun$apply$14.apply(PlayReloader.scala:298) ~[na:na]
          at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
  [warn] play - No application found at invoker init
  </code></pre>