How to use DateTime in Slick2.0?
问题 I want to use DateTime in Slick 2.0 model. I use jodatime: I added the dependencies in Build.scala : "joda-time" % "joda-time" % "2.3", "org.joda" % "joda-convert" % "1.6" I then do: class Comment(tag:Tag) extends Table[(Long, Int, Int, String, Int, DateTime)](tag,"Comment"){ def id=column[Long]("ID", O.PrimaryKey) def rate=column[Int]("rate") def sub=column[Int]("subject") def content=column[Int]("cotent") def user_ID=column[Int]("user") def time=column[DateTime]("time") //-----------an