如何在 SORM 中添加枚举?
我有这个枚举:
object RoutineType extends Enumeration {
val TimeRoutine, SetRoutine = Value
}
在数据库对象中我添加实体:
entities = Set() + Entity[RoutineType.Value]()
但是当我加载所有内容时,我得到了这个异常:
Caused by: sorm.core.SormException: Unsupported type: Enumeration
为什么?文档告诉枚举是受支持的