Re: Euro symbol and other characters distorted
Re: Euro symbol and other characters distorted
- Subject: Re: Euro symbol and other characters distorted
- From: Paul Lynch <email@hidden>
- Date: Wed, 14 Jun 2006 18:21:36 +0100
On 14 Jun 2006, at 18:08, David Griffith wrote:
If I add a duplicate EOModel to my project which uses a different
adaptor setting to connect to FrontBase, can I connect to mySQL
with one of the EOModels and FrontBase with the other and using the
custom java classes just load the data from mySQL via one and write
to FrontBase via the other? I presume I need two editing contexts,
each one using a different EOModel with the relevant adaptor
settings but I don't know how to create the second editing context
using the other EOModel.
Can I do it this way and if so, can someone tell me how to create
the 2nd connection...?
No, because EOF uses a single name space for entity names. In other
words, the duplicate entity names will clash. Programatically, you
could in theory deal with it by accessing the EOModels as they are
loaded and rename entities. This would involve some hassle, but is
feasible.
However, there is a utility buried away in one of the frameworks that
will handle import/export for you; I think it is: /System/Library/
WebObjects/JavaApplications/javaeoutil.woa
Paul
_______________________________________________
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