thanks for all your suggestion. I finally found out what happened and how to 
fix this.



This is an example of such a flag with Postgres Prototype "flag": class is 
"java.lang.Boolean", value class is "NSNumber" and valueType is "c". 
EOGenerator correctly craetes java.lang.Boolean methods but when I have a rule 
testing smartAttribute.className I get "NSNumber" instead of 
"java.lang.Boolean" and thus the rule does not fire.

My first test: overtyped the prototype given Value Class with 
"java.langBoolean". Saved the model and the world was fine. So I went and did 
this overtyping on all similar attributes, stored the model and the world was 
sunny and bright.

Quit Eclipse and when I later opened Eclipse again the world was still sunny. 
But then I opened the EOModel and the lights went out. Entity Modeller 
immediately set the model to "dirty". When I checked why I found that all 
"java.lang.Boolean" Value Class entries got zapped and were replaced by 
"NSNumber". WHY? Why did it do this. If I locally change e.g. the external 
length it is not restored to the value the prototype specifies. Why value class?

Ok, eventually I figured I could rewrite the rule and now the worls is sunny 
and warm again:

100 : (task = 'list' and (smartAttribute.externalType = 'bool' or 
smartAttribute.className = 'java.lang.Boolean')) => componentName = 
"D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]

So I do have a working solution, just out of curiosity - why? What is going on 
here?

---markus---


> On 2 Dec 2020, at 12:15, Markus Ruggiero via Webobjects-dev 
> <webobjects-dev@lists.apple.com> wrote:
> 
> Quick question:
> Why does this rule
> 
> 200 : (smartAttribute.className = 'java.lang.Boolean' and task = 'list') => 
> componentName = "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
> 
> not fire (even with a bumped-up prio)? A more specific rule however works but 
> is a nuisance because I have tons of such isXyz propertyKeys. 
> 
> 100 : (propertyKey = 'isActive' and task = 'list') => componentName = 
> "D2WDisplayBoolean" [com.webobjects.directtoweb.Assignment]
> 
> I must be missing something trivial (it's always the trivial things that ruin 
> the day).
> 
> Thanks a lot
> ---markus---
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/mailinglists%40kataputt.com
> 
> This email sent to mailingli...@kataputt.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to