Hello,
I'd like to get people's opinion on the below.
Let's say we want to create a constant mapping between int & String within our application.
An obvious solution is to create an Enum with a getter() which returns the String based on a given int.
However, we could also create a database table which defines this mapping.
I'm not quite sure which solution has the upper hand (if any) over the other. Would like to get some thoughts.
Thanks,
Sid