标签:hibernate
用Enumerated注解就可以。
@Enumerated(EnumType.STRING) private ResourceType type = ResourceType.menu; // 资源类型
版权声明:本文为博主原创文章,未经博主允许不得转载。
Hibernate如何映射枚举类型num
原文地址:http://blog.csdn.net/csujiangyu/article/details/47684453