title: How to create an instance of a model with the ebean framework and scala in Play 2.2
body: <p>I would like to instance a model object of the Ebean project with scala and the fremework Play 2.2. I face to an issue with the ID autogenerate and the class parameteres / abstraction :</p>
  
  <pre><code>   @Entity 
      class Task(@Required val label:String) extends Model{
        @Id 
        val id: Long
      }
  
  object Task {
    var find: Model.Finder[Long, Task] = new Model.Finder[Long, Task](classOf[Long], classOf[Task])
  
    def all(): List[Task] = find.all.asScala.toList
  
    def create(label: String) {
     val task =  new Task(label)
     task.save
    }
  
    def delete(id: Long) {
      find.ref(id).delete
    }
  }
  </code></pre>
  
  <p>The error  : "class Task needs to be abstract, since value id is not defined". Any idea to avoid this problem?</p>