Re: Tweaking the model on start-up
Re: Tweaking the model on start-up
- Subject: Re: Tweaking the model on start-up
- From: Chuck Hill <email@hidden>
- Date: Thu, 02 Jun 2016 20:18:13 +0000
- Thread-topic: Tweaking the model on start-up
finishInitialization() in your application.
Chuck
From:
<webobjects-dev-bounces+chill=email@hidden> on behalf of Mark Gowdy <email@hidden>
Date: Thursday, June 2, 2016 at 1:14 PM
To: WebObjects-Dev <email@hidden>
Subject: Tweaking the model on start-up
Hi,
Is there a convenient way to update an Entity details when the app starts up?
'Model Framework’ (A) has an Entity called ‘User’
‘Model Framework’ (B) has an Entity called ‘Hub’ that is joined (to-one) with to ‘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";
joinSemantic = EOInnerJoin;
joins = ({destinationAttribute = userID; sourceAttribute = id; });
_________________
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