I have a design dilemma at my hands and am hoping you guys could help me out with this.
Problem: I have about 15 lookup tables for my application each with code and value attributes. I was wondering what would be the best design approach for creating these lookup tables.
I had couple of solutions in my mind
- Having one abstract superclass (say BaseLookupTable) with the code and value properties and then go about creating the 15 specialized lookup classes extending this class. or
- Create enum type for each of the 15 lookup tables.
If you guys could help me pick a solution (even ones not mentioned by me) along with reasons for doing it would be much appreciated.
Cheers, Sumanth