更新时间:2022-05-16 09:02:54
啊,这很容易在CodeCampServer中,有一个通用的EnumerationType类。想法很简单 - 我们只需要使用EnumerationType包装我们的域模型枚举值对象,以将其映射为整数(或者如果需要的话)。
Ah... it was easy. In CodeCampServer - there's a generic EnumerationType class. Idea is simple - we just need to wrap our domain model enumeration value object with EnumerationType in order to map it as integer (or anything else if necessary).