在 Websudos Phantom DSL 上,如何定义列名,但它已经是 Scala 的预定义变量,比如type
?
例子:
class MyTable extends CassandraTable[ConcreteValues, Value] {
object id extends UUIDColumn(this) with PartitionKey[UUID]
object type extends StringColumn(this) // <-- how to define this
}
如何定义type
列,因为它已经是 Scala 的预定义变量?