Skip to content

Instantly share code, notes, and snippets.

Created May 26, 2016 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/dbd42c4d253f86f4fadd89dd7fd52fa7 to your computer and use it in GitHub Desktop.
Save anonymous/dbd42c4d253f86f4fadd89dd7fd52fa7 to your computer and use it in GitHub Desktop.
the description for this gist
trait TaggedTypesImplicitMapper {
import slick.driver.PostgresDriver.api._
implicit val UserIDMapper = MappedColumnType.base[UserID, Int](e => e.asInstanceOf[Int], i => i.userID)
implicit val ItemIDMapper = MappedColumnType.base[ItemID, Int](e => e.asInstanceOf[Int], i => i.itemID)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment