Custom attribute class conversion in entity modeler
Custom attribute class conversion in entity modeler
- Subject: Custom attribute class conversion in entity modeler
- From: Riccardo De Menna <email@hidden>
- Date: Thu, 5 Feb 2009 14:54:17 +0100
Hi all,
Can someone help me configure my EOModel in wolips to return a custom
class with the conversion methods? I mean as if I was choosing the
mutableArray or mutableDictionary prototypes but with my own class.
I configured my attribute like this:
And my com.tuorlo.user.TEvent class has these two methods:
public static TEvent forID(int id);
public int id();
But as soon as I push the generate SQL button in the entity modeler
window I get an error window from wolips with the following exception:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com
.webobjects
.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:350)
at
com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:
334)
at
com
.webobjects
.eoaccess.EOModel._setEntityForEntityNameClassName(EOModel.java:1302)
at
com
.webobjects
.eoaccess.EOModel._addFakeEntityWithPropertyList(EOModel.java:1340)
at
com
.webobjects
.eoaccess
.EOModel._initWithTableOfContentsPropertyListPathURL(EOModel.java:1144)
at com.webobjects.eoaccess.EOModel.<init>(EOModel.java:841)
at
com
.webobjects
.eoaccess.EOModelGroup.addModelWithPathURL(EOModelGroup.java:443)
at
org
.objectstyle
.wolips.eomodeler.core.sql.EOFSQLGenerator.<init>(EOFSQLGenerator.java:
121)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun
.reflect
.NativeConstructorAccessorImpl
.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun
.reflect
.DelegatingConstructorAccessorImpl
.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org
.objectstyle
.wolips
.eomodeler
.core
.sql.EOFSQLGeneratorFactory.sqlGenerator(EOFSQLGeneratorFactory.java:36)
at
org
.objectstyle
.wolips
.eomodeler
.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:297)
at org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog
$1.run(GenerateSQLDialog.java:279)
at java.lang.Thread.run(Thread.java:613)
That is I get the error before even thinking of launching the app. I
guess wolips looks for my custom class but can't find it. Where do I
have to put it to ensure I can make a custom conversion like this one?
Thank you all in advance,
rdm
_______________________________________________
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