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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to