Re: Custom attribute class conversion in entity modeler
Re: Custom attribute class conversion in entity modeler
- Subject: Re: Custom attribute class conversion in entity modeler
- From: Riccardo De Menna <email@hidden>
- Date: Fri, 6 Feb 2009 17:50:15 +0100
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden