Discussion: Handling missing enums
I started up the code in main branch and hit the following problem when trying to load permissions in the UI:
No enum constant
org.gringlobal.model.community.SecurityAction.Crop
What options do we have with Hibernate to avoid it from throwing an error? Should we be testing on startup if the database contains any invalid values? Should we revert to using String
instead of enum
(similar to @CodeValue
)?