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