Re: Qualifiers on objects to identify class
Tony Giaccone <[email protected]>
| Newsgroups | gmane.comp.java.cayenne.user |
|---|---|
| Message-ID | <[email protected]> |
You’re doing good boss, I’m learning. :-) Sent from my iPhone > On Feb 5, 2020, at 4:03 AM, Andrus Adamchik <[email protected]> wrote: > > Cool, by the time I had an opportunity to read the list mail, there's already a solution :) > >> On Jan 30, 2020, at 9:50 PM, Tony Giaccone <[email protected]> wrote: >> >> You know these are the times when I really appreciate how elegant Cayenne is. I wish I had tried just a bit more to figure this out it's as simple as >> >> accountTypeStr = "A" or accountTypeStr = "B" >> >> easy peasy... >> >> Tony >> >>> On 2020/01/30 20:46:53, "Giaccone, Tony" <[email protected]> wrote: >>> Andrus, et al... >>> >>> I have an accountType enum, which has one of three values. I want two >>> values to generate one type of class, and 1 value to identify a different >>> class in the entity class panel of the modeler >>> >>> >>> accountTypeStr = ("A" or "B") >>> >>> for example, however, the modeler doesn't like that one bit. Is it possible >>> to do that? >>> >>> >>> >>> Tony >>> >