I am trying to create a class in HBM file which contains an Enum as a field.
The HBM is similar to this:
You need to use a UserType to persist that efficiently: https://www.hibernate.org/265.html