Unfortunately in my case, the mapping table is more like an enum. It looks sort of like this:
Code:
create table item (
id int,
color_id int,
...
)
create table color_lookup (
id int,
color char(20)
)
I would like to be able to have the Item bean simply have a color property that is a simple string (i,e,,
Code:
public class Item {
public String getColor()
{...}
...
}
), since the colors are seldom updated (we will do that by hand with an SQL insert). On the other hand, they will be updated often enough that I don't want an enum and a recompile every time we do...
Any ideas?
Fedora