• 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
accessing relation...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

accessing relation...


  • Subject: accessing relation...
  • From: Theodore Petrosky <email@hidden>
  • Date: Tue, 5 Feb 2008 06:57:09 -0800 (PST)

OK.... I have a table 'EmployeeNames' that has a
relationship EmployeeeBusinessMeta.

I want to update the 'iscurrent' column of the
EmployeeeBusinessMeta table.

in my un-normalized version where the iscurrent
attribute lived in EmployeeNames I just set it like
this:

EOEditingContext ec =
session().defaultEditingContext();
		ec.revert();
		anEmployee.setIscurrent(false);
		ec.saveChanges();

now that the attribute lives in the related table
EmployeeeBusinessMeta how do I set it. I tried:
anEmployee.employeeBusinessMetas.setIscurrent(false);
to no avail...

I am just a little lost

Ted


      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

 _______________________________________________
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: accessing relation...
      • From: David Avendasora <email@hidden>
  • Prev by Date: Re: wocode!!!
  • Next by Date: Re: accessing relation...
  • Previous by thread: Re: Illegal Lock usage
  • Next by thread: Re: accessing relation...
  • Index(es):
    • Date
    • Thread