can now annotate enums with the PersistEnum annotation and specify the method that is used for returning the value of the enum