title: Play 2 - Zentask Java Tutorial - jUnit ebean test failure
body: <blockquote>
    <blockquote>
      <p><strong>Solution: you dont need IDE for testing, just run "play test" in the console</strong></p>
    </blockquote>
  </blockquote>
  
  <p>Good Evening!
  I just started to get into Play Framework, I worked with jUnit before and also used testing in rails and lift. But here I think there is a problem with ebean, and I just dont get why it happens. 
  I use eclipse and the right java versions, all libraries are fine, no errors in the code, i just follow the tutorial. Solutions like adding ebean into VM dont work, cause it says then "cant load VM" on eclipse.</p>
  
  <p>there is the error message</p>
  
  <pre><code>[[31merror[0m] c.a.e.s.d.BeanDescriptorManager - Error in deployment
  javax.persistence.PersistenceException: java.lang.IllegalStateException: Class [class play.db.ebean.Model] is enhanced and [class models.User] is not - (you can not mix!!)
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.setEntityBeanClass(BeanDescriptorManager.java:1475) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.createByteCode(BeanDescriptorManager.java:1138) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readDeployAssociations(BeanDescriptorManager.java:1058) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readEntityDeploymentAssociations(BeanDescriptorManager.java:565) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.deploy(BeanDescriptorManager.java:252) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.core.InternalConfiguration.&lt;init&gt;(InternalConfiguration.java:124) [avaje-ebeanorm-server.jar:na]
  Caused by: java.lang.IllegalStateException: Class [class play.db.ebean.Model] is enhanced and [class models.User] is not - (you can not mix!!)
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.checkInheritedClasses(BeanDescriptorManager.java:1528) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.checkSubclass(BeanDescriptorManager.java:1491) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.setEntityBeanClass(BeanDescriptorManager.java:1450) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.createByteCode(BeanDescriptorManager.java:1138) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readDeployAssociations(BeanDescriptorManager.java:1058) ~[avaje-ebeanorm-server.jar:na]
  at com.avaje.ebeaninternal.server.deploy.BeanDescriptorManager.readEntityDeploymentAssociations(BeanDescriptorManager.java:565) ~[avaje-ebeanorm-server.jar:na]
  </code></pre>
  
  <p>I think this is the main error message:</p>
  
  <pre><code>Caused by: java.lang.IllegalStateException: Class [class play.db.ebean.Model] is enhanced and [class models.User] is not - (you can not mix!!)
  </code></pre>
  
  <p>I hope you guys can help me out quick!
  Cheers!</p>