I am trying to insert username and encrypted password pairs into database table using squeryl ORM framework. My code basically looks like the following:
class SHA1(e: StringExpression[String], m:OutMapper[String]) extends FunctionNode[String]("sha1", Some(m), Seq(e)) with StringExpression[String]
def sha1(e:StringExpression[String])(implicit m:OutMapper[String]) = new SHA1(e,m)
transaction{
val foo = TestUser.userTable insert User("test@domain.com", sha1("password"))
}
But this does not work. I got an error saying:
type mismatch; found : controllers.SHA1 required: String Error occurred in an application involving default arguments.