Okay... two days... I give up...
Is there a way to stop a model from getting loaded into the default
EOModelGroup? I have a entity naming conflict and I want to prevent a model in
a framework I'm using from loading. I looked at the delegate methods and they
don't seem do do what I want, the EOModelGroup.ClassDelegate looked promising,
but from what I read it looks like I'd have to re-implement most of
ERXModelGroup.loadModelsFromLoadedBundles() and when I put this code...
// remove the my Model from the default model group of the Application
EOModelGroup.setClassDelegate(new EOModelGroup.ClassDelegate() {
@Override
public EOModelGroup defaultModelGroup() {
ERXModelGroup group = new ERXModelGroup();
group.loadModelsFromLoadedBundles();// pretty sure this would still throw an
exception
EOModel model = group.modelNamed("mymodel");
if(model != null)
group.removeModel(model);
return group;
}
});
... in the Application() constructor it get the message...
Class com.webobjects.foundation.NSSelector can not access a member of class
com.mycomp.Application$1 with modifiers "public"
If this can't be done I guess my only recourse would be to write a util.
program to edit all the plist from my models and prepend something to all the
entity names.
Thanks.
-Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]