Use hbm mapping instead of annotations for enums.