Adding an enum as a class property in HBM

前端 未结 6 1915
走了就别回头了
走了就别回头了 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:16

    You need to use a UserType to persist that efficiently: https://www.hibernate.org/265.html

提交回复
热议问题