You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by "Giaccone, Tony" <an...@nytimes.com> on 2020/01/30 20:46:53 UTC

Qualifiers on objects to identify class

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

Re: Qualifiers on objects to identify class

Posted by Tony Giaccone <to...@giaccone.org>.
You’re doing good boss, I’m learning. :-)

Sent from my iPhone

> On Feb 5, 2020, at 4:03 AM, Andrus Adamchik <an...@objectstyle.org> 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 <to...@giaccone.org> 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" <an...@nytimes.com> 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
>>> 
> 

Re: Qualifiers on objects to identify class

Posted by Andrus Adamchik <an...@objectstyle.org>.
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 <to...@giaccone.org> 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" <an...@nytimes.com> 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
>> 


Re: Qualifiers on objects to identify class

Posted by Tony Giaccone <to...@giaccone.org>.
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" <an...@nytimes.com> 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
>