The problem here is that result.nextTimestamp
returns a java.sql.Timestamp
(result
is the JDBC ResultSet
). If you want to turn it into a DateTime
, I think that there's a constructor for it. So you'd write:
implicit val getUserResult: GetResult[user] =
GetResult( result =>
user(
result.nextString,
result.nextString,
new DateTime(result.nextTimestamp),
result.nextStringOption)
)