In working on the domain layer of an application, I wrote a couple of typesafe enumeration classes that mirrored data in a couple of reference tables in a database. If you are not familiar with the pattern, Jimmy Bogard’s Enumeration classes post explains the pattern and rationale. The classes I wrote inherit from a modified…