On Jan 16, 2008, at 7:34 PM, Andrus Adamchik wrote:
public enum SomeArbitraryType {
TYPE1, TYPE2, ...;
@EnumCode
public String getCode() {
// this is dumb, but demonstrates the idea
return name() + "_CODE";
}
}
Or this:
public enum SomeArbitraryType {
@DbCode(value="X")
TYPE1,
@DbCode(value="Y")
TYPE2, ...;
}
Andrus
