John,
I have a java enum AccountType which implements ExtendedEnumeration. It has two
values,
DIGITAL_ACCOUNT("DIG_ACCOUNT"),
HD_ACCOUNT("HD_ACCOUNT");
in the model, I have two objects HDAccount, DIGAccount. Each are based on
the same table in the database.
In each there is a field,
accountType who's type is set to the type of the enum listed above.
java field java type
database field.
accountType com.my.enum.package.AccountType account_type
I want to set a qualifier on the table to allow me to differentiate the
classes.
I started out with accountType = "DIG_ACCOUNT"; and had problems casing from
string to the enum.
I set the qualifier to accountType = AccountType.DIGITAL_ACCOUNT. That seems to
be solving the problem. I got side tracked today by another incarnation of my
previously discussed hikaricp/h2 bug. I think it's now completely purged from
our testing code.
The other thing that bites me from time to time, is that we have our data model
classes in a separate jar file. When you make changes to that and build from
the command line, the related builds don't pick up the change unless you
install it in the local repository. Not a problem if I build from the root
directory, but I don't always want to build everything.
Thanks for your help. I think I have this all under control LOL as much as
anything computing is every 'under control". ;-)