use enum type as entity attribute