Are there any good strategies for using enums w/ Ibatis? Are there plans
to directly support them, if not?
I have been forcing my enums (which represent valid values of certain
columns, e.g. status columns) to have a value(), e.g.:
public enum Status {
...
COMPLETE { public Integer value() { return 400; }},
COMPLETE_WITH_WARNINGS { public Integer value() { return 401; }};
public abstract Integer value();
}
...and then translating that before it gets to Ibatis, using value(). But
this is a little non-optimal.
Thanks
Reuben