• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom attribute class conversion in entity modeler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

PNG image




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

  • Follow-Ups:
    • Re: Custom attribute class conversion in entity modeler
      • From: Mike Schrag <email@hidden>
    • Re: Custom attribute class conversion in entity modeler
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: Application Instance Number (WO 5.3)
  • Next by Date: Custom WODisplayGroup with extended query behaviour, problem with KeyValue Coding.
  • Previous by thread: Re: BeanPropertyTarget argument type mismatch WO5.4.3
  • Next by thread: Re: Custom attribute class conversion in entity modeler
  • Index(es):
    • Date
    • Thread