Hibernate注解@Enumerated 1、@Enumerated(value=EnumType.ORDINAL) 按枚举下标存储(序号从0开始) 2、@Enumerated(value=EnumType.STRING) 按枚举值存储