someone else had an issue with a static initializer previously, which is why i was considering this change ...

On Feb 6, 2009, at 11:50 AM, Riccardo De Menna wrote:

Nevermind,

The issue was not caused by the Entity Modeler setting but rather from a static piece of code in the Entity class. The static code is being executed by entity modeler as soon as the class initializes I guess.

This is the static code:

static {
        TEvent.define(1,"SOMETHING NASTY HAS HAPPEND");
        TEvent.define(2,"SOMETHING FUNNY HAS HAPPEND", TEvent.forID(1) );
}

If I remove the second TEvent.define it works. It's the nested TEvent causing the problem. As if entity modeler can't find the class for the nested one but it can for the non nested.

In this case it's just a matter of slightly changing the TEvent.define parameters so that it takes an int instead of itself. Simple workaround... it works now but I guess there could be more complicate cases where this might not be possible.

No idea what it could be. Just wrote this reply to clear what was going on and thank mike for his usual kindness.

rdm

On 06/feb/09, at 16:04, Mike Schrag wrote:

And my com.tuorlo.user.TEvent class has these two methods:
Does this class actually exist in your project? And is it in the classpath? Entity Modeler constructs its classpath based on you project's classpath definition.

ms

_______________________________________________
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:
http://lists.apple.com/mailman/options/webobjects-dev/demenna%40rdm-web.com

This email sent to deme...@rdm-web.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:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to msch...@mdimension.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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Reply via email to