Re: adding multiple objects in a relationship
Re: adding multiple objects in a relationship
- Subject: Re: adding multiple objects in a relationship
- From: WebObjects <email@hidden>
- Date: Sat, 18 Oct 2008 08:46:46 -0500
Yes it is my Join table, but I had to unflattened because it has
important information, the creationDate when the employee registered
the turns he wants to work at,....mm so, if I have a Join table like
this, I must createandInsertInstacne () method of EmployeeTurn, for
each Turn I have selected by the user... and if its just a Join table
which is flattened then I can just do it using the
addObjectsToBothSidesOfRelatoinShip method?... interesting...
something new I have learned.
thx
Gus
On Oct 18, 2008, at 1:53 AM, Lachlan Deck wrote:
On 18/10/2008, at 5:30 PM, Johann Werner wrote:
does EmployeeTurn represent your join table? If not look at
Lachlans suggestion, if you answer this question with yes you will
need an EmployeeTurn object for each combination of Employee and
Turn.
This would mean that you have to change your code:
Unless it's a flattened Many-to-Many.
with regards,
--
Lachlan Deck
_______________________________________________
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
_______________________________________________
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