• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Model Cloning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Model Cloning


  • Subject: Re: Model Cloning
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 11 Jul 2007 16:03:40 -0700


On Jul 11, 2007, at 3:18 PM, Andrew Lindesay wrote:

Hello;

I'm doing;

	1) fully-load model A
	2) set the JDBC config for model A
	3) re-load clone model into a new EOModel called B from A's URL
	4) rename B's entities and the model with a suffix "RO".
	5) make B's entities read-only
	6) insert B into the default model group

This allows me to force some database queries to a separate server as long as there is no "crossing-of-the-models". Has anybody else tried something like this?

Not exactly. I'd be more inclined to create a new model group and load the models in that. That avoids the "rename B's entities and the model" step. You will need to create a new EOF stack for the non- default model group and be aware that you are not using the default group. This may break some assumptions in your code, but the API is all there to handle this.


Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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


References: 
 >Model Cloning (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Model Cloning
  • Next by Date: Re: EOAndQualifier order
  • Previous by thread: Model Cloning
  • Next by thread: Re: Model Cloning
  • Index(es):
    • Date
    • Thread