I can't find postgres import for slick <>
operator. I'm trying to create mapping for java.time.OffsetDateTime
. The error is:
not found: value <>
<> ((Bonus.apply _).tupled, Bonus.unapply _)
My *
method:
override def * = (id, name, createdAt) <> ((Bonus.apply _).tupled, Bonus.unapply _)
My OffsetDateTime
mapping:
implicit def zoneDateTime: TypedType[OffsetDateTime] =
MappedColumnType.base[OffsetDateTime, String](
zdt => zdt.toString,
date => OffsetDateTime.parse(date)
)
I believe import slick.jdbc.PostgresProfile.api._
should work, but it's not. Everything worked fine without OffsetDateTime
and method
override def * = (id, name, createdAt).mapTo[Bonus]