• 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: Multiple ERAttachment Databases
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple ERAttachment Databases


  • Subject: Re: Multiple ERAttachment Databases
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 13 Jan 2014 20:45:22 +0000
  • Thread-topic: Multiple ERAttachment Databases

There should be no problem with cloning and modifying the model when the app loads.  I have NFI about ERAttachment.  

Chuck


-- 
Chuck Hill             
Executive Managing Partner, VP Development and Technical Services

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/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C! 

Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!

On 1/13/2014, 6:43 AM, "David Avendasora" wrote:

Hi all,

I’m working on a project that needs to have a separate, independent ERAttachment setup. What I mean is that the project is already using ERAttachment for a few things, but now I have a need for all of ERAttachment’s functionality, only storing all the meta-data and even db-based attachments in a completely different database than where the existing attachments are stored.

I have done exactly this before by forking ERAttachment into a new "DaveAttachment" Framework. All the existing attachments worked using the stock ERAttachment framework, but the new attachments were managed by DaveAttachment, but that is long-term code management PITA.

I’m wondering if it would it be possible enable ERAttachment to use multiple data-stores by programmatically cloning the ERAttachment EOModel at startup and creating a new EOModel for each “data-store” with independent Entity names as configured by properties? 

If you only have one data-store (the current functionality) then ERAttachment would continue to work as-is, but if you specify multiple data-stores in the properties, that would trigger the programatic creation and loading of the additional models?

Does anyone see anything that I’m missing that would not allow this?

Thanks!

Dave


—————————————————————————————
WebObjects - so easy that even Dave Avendasora can do it!™
—————————————————————————————
David Avendasora
Senior Software Abuser
Nekesto, Inc.





 _______________________________________________
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

  • Follow-Ups:
    • RE: Multiple ERAttachment Databases
      • From: "Beatty, Daniel D CIV NAVAIR, 474300D" <email@hidden>
References: 
 >Multiple ERAttachment Databases (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Multiple ERAttachment Databases
  • Next by Date: RE: Multiple ERAttachment Databases
  • Previous by thread: Re: Multiple ERAttachment Databases
  • Next by thread: RE: Multiple ERAttachment Databases
  • Index(es):
    • Date
    • Thread