0
我試圖從外包工phantom
維基上的佈局tut。CollectionColumn有什麼問題?
我使用的是測試模型:
case class User (id: String, name: String, friends: List[String])
有:
import com.websudos.phantom.dsl._
class Users extends CassandraTable[Users, User] {
object id extends StringColumn(this) with PartitionKey[String]
object name extends StringCoumn(this)
object friends extends ListColumn[String](this)
}
的ListColumn[String]()
參數this
被標記爲這我相信我甚至不應該刻意去打造一個錯誤。預計CassandraTable[String, User]
而不是this
。
我使用的版本1.29.6
我使用來自維基例如不同的版本?或缺少其他東西?