Re: Loading a model from a referenced framework in a jar project
Re: Loading a model from a referenced framework in a jar project
- Subject: Re: Loading a model from a referenced framework in a jar project
- From: "Henrique Prange" <email@hidden>
- Date: Sat, 27 Dec 2008 11:39:37 -0200
Hi Richard,
On Fri, Dec 26, 2008 at 5:49 AM, Richard Stephens <email@hidden> wrote:
> Hi
> How do I load a model from a referenced framework in a Jar project?
You can try something like this:
URL modelUrl = getClass().getResource("/Resources/YourModel.eomodeld");
EOModelGroup.defaultGroup().addModelWithPathURL(modelUrl);
Cheers,
Henrique
> --
> Regards, Richard Stephens Ph: 07 3136 3426 Mob: 0410 111 570 Email:
> email@hidden
> _______________________________________________
> 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
>
_______________________________________________
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