• 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: Automatically create record in a to-one relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically create record in a to-one relationship


  • Subject: Re: Automatically create record in a to-one relationship
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 24 Jun 2005 13:52:24 -0700

That is the right way to do it. Check
1. You did this on the relationship from One to Two and not the other way around
2. You are calling ec.insertObject(one);
3. You have not overridden one.awakeFromInsertion() and forgotten to call super.awakeFromInsertion



Chuck

On Jun 24, 2005, at 1:23 PM, Omar wrote:

Hi all,

I have the following problem, I have 2 tables with a to-one relationship.

I want WO to create a new row in table2 when I create a record in
table1, since they are in a to-one relationship.

I was searching for this and found:

http://www.wodeveloper.com/omniLists/webobjects-dev/2001/June/ msg01251.html

I tried what it said but it didn't create the row in table2.

Does anybody know how to do this?

Thanks in advance,

Omar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________ 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: Automatically create record in a to-one relationship
      • From: Omar <email@hidden>
    • Re: Automatically create record in a to-one relationship
      • From: Art Isbell <email@hidden>
References: 
 >Automatically create record in a to-one relationship (From: Omar <email@hidden>)

  • Prev by Date: Re: Webobjects books/place to start?
  • Next by Date: Re: Automatically create record in a to-one relationship
  • Previous by thread: Automatically create record in a to-one relationship
  • Next by thread: Re: Automatically create record in a to-one relationship
  • Index(es):
    • Date
    • Thread