Following the spirit of this question, what should be the ideal way to store enums in a database in Delphi? I have several lookup tables that guide some business logic, so a) they are tightly coupled with my code, and b) they may be subject to change in newer releases.
Right now I'm doing it by saving its numeric values, and setting the enum value explicitly.
type TSuit = (Unknown = 4, Heart = 1, Club = 3, Diamond = 2, Spade = 0);
Do you know a better way?