Questions tagged «squeryl»

1
如何:Lift-Record-Squeryl中的自定义字段
我正在尝试EnumListField在Lift / Record / Squeryl中创建一个,类似于MappedEnumList中LiftMapper。存储类型应为Long / BIGINT。我了解,如果我定义: def classOfPersistentField = classOf[Long] 然后,Squeryl将知道它应该创建一个BIGINT列。而且我知道它用于setFromAny()设置值,传入Long。我没有得到的一件是: 它将如何读取该字段的值?如果使用valueBox,它将得到一个Seq[Enum#Value],并且不知道如何将其转换为Long。 如何告诉Squeryl将我转换Seq[Enum#Value]为Long或定义一个返回Long且与“正常” getter不冲突的“ getter”?
92 scala  lift  record  squeryl 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.