I have the following abstract classes:
abstract class Accessor {
  def get(rowkey:String): Option[M2mModel]
  def insertNew(model: M2mModel): Option[M2mModel]
}
abstract class Model(active:Int) {
  @BeanProperty
  var ttl = None
}
My implementation classes are:
object AccountModel {
  val COL_USERNAME = "username"
  val COL_EMAIL = "email"
  val COL_PASSWORD = "password"
  val COL_DOMAIN = "domain"
  val COL_ACTIVE = "active"
  val COL_ROLE = "role"
  val COL_ACLID = "aclid"
  val definedFields = List(COL_USERNAME, COL_EMAIL, COL_PASSWORD, COL_DOMAIN, 
    COL_ACTIVE, COL_ROLE, COL_ACLID)
  def apply(rowkey:String, email:String, password:String) = new AccountModel(rowkey, email, password) 
}
case class AccountModel(rowkey: String, email:String, password: Option[String], 
  username: Option[String], domain: Option[String],
  role: Option[String], active: Int, aclid: Option[String]) extends M2mModel(active) {
  def this(rowkey:String, email:String, password:String) = this(rowkey, email, Some(password),
      None, None, None, 1, None)
}
When I create the Accessor class and implement the insertNew method I get the following error: object creation impossible, since method insertNew in class Accessor of type (model: package.Model)Option[package.Model] is not defined (Note that package.Model does not match package.AccountModel)
Here is my implementing class
object AccountAccess extends Accessor {
 def insertNew(model: AccountModel): Option[AccountModel] = {
    ...do stuff
}
what am i doing wrong?
thanks
 
     
     
    