entity Qualifiers and enums

Tony Giaccone <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <pony-dbd9f43019a5f7f32b67590ba6bd947a9c0311dc-290c24fcb2112ee8ac85649182244d73e2f8a98a@user.cayenne.apache.org>
I have two objects, that are based on the same table. I want to differentiate them by using a qualifier. 

I'm using a qualifer that looks like accountType = AccountType.hdaccount

where hdaccount is one of the enumerated values.

When i create an object of this type, the field is set to null. Is that typical? Do I have to explicitly set it myself, if so what happens if I set it to the wrong value?

Tony Giaccone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.