Adding an enum as a class property in HBM

前端 未结 6 1896
走了就别回头了
走了就别回头了 2021-01-01 16:38

I am trying to create a class in HBM file which contains an Enum as a field.

The HBM is similar to this:



        
6条回答
  •  囚心锁ツ
    2021-01-01 17:12

    Just editing @Emmanuel Bourg answer and adding another like this:

    
        
            
                a.b.c.myEnum
                12
                   
        
    
    

    12 is equivilant to java.sql.Types.VARCHAR

提交回复
热议问题