• 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
EOModelGroup.defaultGroup().models() is empty !!! Why ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOModelGroup.defaultGroup().models() is empty !!! Why ?


  • Subject: EOModelGroup.defaultGroup().models() is empty !!! Why ?
  • From: Dumitru Husleag <email@hidden>
  • Date: Tue, 22 Mar 2005 14:50:25 +0100

     Hello,

     The application was migrated to eclipse. Before migration there
were no pbs.
     Now the pb is that the default model group doesnt seem to see or
load the only model is in the project.
(the model exists in the .woa ).
     So, I found the solution to make it visible like this:

<code>
    		if (EOModelGroup.defaultGroup().modelNamed(modelName) == null) {
    		    EOModelGroup.defaultGroup().addModelWithPathURL(
                        new File(modelName + ".eomodeld").toURL());
            }
    		_model = EOModelGroup.defaultGroup().modelNamed(modelName);
</code>

     But later it causes me a NullPointerException in the folowing code:

<code>
EOAdaptor adaptor = EOAdaptor.adaptorWithModel(model());
EOSchemaGeneration eoschemageneration = _adaptor().synchronizationFactory();
eoschemageneration.schemaCreationStatementsForEntities(listOfEntities,
options);/*HERE is the Exception*/
</code>

     The parameters are not null.
     I think that finding why in the first place it doesnt see the
model will solve the problem.
 _______________________________________________
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:
    • JavaMonitor Null Pointer exception
      • From: "Robert Snyder" <email@hidden>
    • Re: EOModelGroup.defaultGroup().models() is empty !!! Why ?
      • From: Kaj Hejer <email@hidden>
  • Prev by Date: "Method failed to delete row in database" for flattend relationship after adding delete cascade
  • Next by Date: Re: EOModelGroup.defaultGroup().models() is empty !!! Why ?
  • Previous by thread: "Method failed to delete row in database" for flattend relationship after adding delete cascade
  • Next by thread: Re: EOModelGroup.defaultGroup().models() is empty !!! Why ?
  • Index(es):
    • Date
    • Thread