• 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
Tweaking the model on start-up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tweaking the model on start-up


  • Subject: Tweaking the model on start-up
  • From: Mark Gowdy <email@hidden>
  • Date: Thu, 02 Jun 2016 21:14:48 +0100

Hi, 

Is there a convenient way to update an Entity details when the app starts up?

e.g.
'Model Framework’ (A) has an Entity called ‘User’
‘Model Framework’ (B) has an Entity called ‘Hub’ that is joined (to-one) with to ‘User’
i.e.
com.B.Hub   —> com.A.User
(where ‘User’ knows nothing about ‘Hub’, it is out of scope)

I can create a class in (B) called 
com.B.User extends com.A.User

so that I can add the additional set/get code, 

and then apply something like this (at start-up):
{
className = "com.B.User";
relationships = (
{
destination = Hub; 
isToMany = Y; 
joinSemantic = EOInnerJoin; 
joins = ({destinationAttribute = userID; sourceAttribute = id; }); 
name = hubs; 
}
);
}

Any suggestions?

Mark

_________________
Mark Gowdy
Gowdy Associates Ltd
Skype: markgowdy




 _______________________________________________
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: Tweaking the model on start-up
      • From: Paul Hoadley <email@hidden>
    • Re: Tweaking the model on start-up
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: 32bit vs 64bit
  • Next by Date: Re: Tweaking the model on start-up
  • Previous by thread: Re: 32bit vs 64bit
  • Next by thread: Re: Tweaking the model on start-up
  • Index(es):
    • Date
    • Thread