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

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


  • Subject: Re: EOModelGroup.defaultGroup().models() is empty !!! Why ?
  • From: Kaj Hejer <email@hidden>
  • Date: Tue, 22 Mar 2005 14:52:10 +0100

Hi!

Check your PB.project file to be sure your eomodel is in there.


-Kaj :)


On 22. mar 2005, at 14.50, Dumitru Husleag wrote:

     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:
email@hidden


This email sent to email@hidden

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
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

References: 
 >EOModelGroup.defaultGroup().models() is empty !!! Why ? (From: Dumitru Husleag <email@hidden>)

  • Prev by Date: EOModelGroup.defaultGroup().models() is empty !!! Why ?
  • Next by Date: Design Best Practice Question
  • Previous by thread: EOModelGroup.defaultGroup().models() is empty !!! Why ?
  • Next by thread: JavaMonitor Null Pointer exception
  • Index(es):
    • Date
    • Thread