My problem is very close to this question, but my error is different.
Customer Type Mapper for Slick SQL
This is my utility class where JDATE and the Mapper is defined
package org.mydomain.utils
import slick.driver.MySQLDriver.simple._
import org.joda.time.DateTime
import java.sql.Date
import org.joda.time.DateTime
import java.sql.Timestamp
sealed trait JDATE
object DateUtils {
implicit def jdateColumnType =
MappedColumnType.base[DateTime, Timestamp](
dt => new Timestamp(dt.getMillis),
ts => new DateTime(ts.getTime)
)
}
The domain object User.scala is as follows
case class UserRow(id: Long, birthday: JDATE)
class User(tag: Tag) extends Table[UserRow](tag, "USER") {
def id = column[Long]("ID", O.PrimaryKey, O.AutoInc)
def birthday = column[JDATE]("BIRTHDAY")
def * = (id, birthday) <> (UserRow.tupled, UserRow.unapply)
}
Error: not enough arguments for method column: (implicit tm: scala.slick.ast.TypedType[org.mydomain.utils.JDATE])scala.slick.lifted.Column[org.mydomain.utils.JDATE]. Unspecified value parameter tm.
How to pass the tm here ? Apologies for this noob question. Thanks