Re: Doesn't see all prototypes model?!
Re: Doesn't see all prototypes model?!
- Subject: Re: Doesn't see all prototypes model?!
- From: Chuck Hill <email@hidden>
- Date: Thu, 16 Dec 2004 16:34:02 -0800
Should be a directory with all the files in it that are in the eomodeled
directory in the project. Perhaps you have the resources incorrect
configured in your build.xml or one of the many config files that get
referenced?
Chuck
At 06:26 PM 16/12/2004 -0600, James Cicenia wrote:
>OK - a bit confused here... my framework is indeed there. However only
>the main .eomodeld file is under
>resources... am I supposed to have the prototypes one there too?
>
>-James
>
>On Dec 16, 2004, at 6:21 PM, Chuck Hill wrote:
>
>> Classpath issue. The framework is not getting loaded. Check the path
>> in
>> Appname.woa/Contents/Windows/CLSSPATH.TXT. Check that the jar for the
>> FW
>> is really there. Check that the .eomodeld file really is under the
>> Resources directory in the model.
>>
>> Chuck
>>
>> At 06:11 PM 16/12/2004 -0600, James Cicenia wrote:
>>> This only sees the main model.. not the one in the framework... it
>>> only
>>> loops once.
>>>
>>> public void appendJdbcUrl(String additionalUrl) {
>>> String newDatabaseTag = databaseTagFromUrl(additionalUrl);
>>> if (newDatabaseTag != null) {
>>> EOPrototypeSwitcher switcher = new
>>> EOPrototypeSwitcher(newDatabaseTag.toUpperCase());
>>> System.out.println("Database Tag: "+newDatabaseTag);
>>> jdbcUrls.setObjectForKey(additionalUrl, newDatabaseTag);
>>>
>>> for (Enumeration en =
>>> EOModelGroup.defaultGroup().models().objectEnumerator();
>>> en.hasMoreElements();) {
>>> EOModel theModel = (EOModel) en.nextElement();
>>> NSMutableDictionary dict = new
>>> NSMutableDictionary(theModel.connectionDictionary());
>>> String oldUrl = (String) dict.objectForKey("URL");
>>> String replacementUrl = (String)
>>> jdbcUrls.objectForKey(databaseTagFromUrl(oldUrl));
>>> if (replacementUrl != null) {
>>> dict.setObjectForKey(replacementUrl, "URL");
>>> theModel.setConnectionDictionary(dict);
>>>
>>> System.out.println("Override EOModel URL. New url is: "
>>> + theModel.connectionDictionary().objectForKey(
>>> "URL"));
>>> }
>>> switcher.updatePrototypes(theModel);
>>> EOFJDBCConnectionAnalyzer analyzer = new
>>> EOFJDBCConnectionAnalyzer(theModel.connectionDictionary());
>>> }
>>> }
>>> }
>>>
>>> any thoughts?
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>> villag
>> e.net
>>>
>>> This email sent to email@hidden
>>>
>>
>> --
>>
>> Chuck Hill email@hidden
>> Global Village Consulting Inc.
>> http://www.global-village.net
>>
>
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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