Re: EOModelGroup.defaultGroup().models() is empty !!! Why ?
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