Hi,
I'm a Scala/Slick newbie, and I have a schema question. I'm mapping my tables to case classes. However, I'm using the same classes for JSON mapping, and I want to have some optional values (which do not exist as db columns) on these classes. (What I actually want is the feature called @Transient fields in Hibernate/JPA terminology). However, I cannot get my code to compile when I simply want to use Option[] fields, I get the following error (which is quite obvious):
[error] Slick does not know how to map the given types.
[error] Possible causes: T in Table[T] does not match your * projection. Or you use an unsupported type in a Query (e.g. scala List).
Is there any workaround to this? I can understand that I can write custom versions of tupled and unapply to workaround this problem, however I don't know how to implement these methods either.
Any help would be greatly appreciated,