How to map postgresql custom enum column with Slick2.0.1?
问题 I just can't figure it out. What I am using right now is: abstract class DBEnumString extends Enumeration { implicit val enumMapper = MappedJdbcType.base[Value, String]( _.toString(), s => this.withName(s) ) } And then: object SomeEnum extends DBEnumString { type T = Value val A1 = Value("A1") val A2 = Value("A2") } The problem is, during insert/update JDBC driver for PostgreSQL complains about parameter type being "character varying" when column type is "some_enum", which is reasonable as I