Re: AjaxSubmitButton

2011-09-08 Thread pavan.jayam

Hi List,

Followed the same way that mentioned below email threads. It is working 
fine with Firefox/Safari/Chrome but the action = myAction is not 
calling when i click the Image1( surrounded by button) in IE 7 or 8 
versions.


(WEBOBJECT NAME=AjaxSubmitButton3
   WEBOBJECT NAME=Image1/WEBOBJECT
/WEBOBJECT)

Please advise.

Regards,
JPK.


 Hi,
 Thanks for giving reply,I have the image is in my project's 
Resources/folder
 it self. If i given only WOImage (without AjaxSubmitButton) it is 
appearing

 on UI. But not appearing when i used the WOImage with AjaxSubmitButton.
 Am sending the code which is i have,

 WEBOBJECT NAME=AjaxSubmitButton3WEBOBJECT
 NAME=Image1/WEBOBJECT/WEBOBJECT

So if you change this to

WEBOBJECT NAME=Image1/WEBOBJECT
WEBOBJECT NAME=AjaxSubmitButton3WEBOBJECT
NAME=Image1/WEBOBJECT/WEBOBJECT

then Image1 shows up on the outside of the button, but not on the 
inside??? 
That would be really weird. If you change elementName=button; to

elementName=div; do you get the same thing also?

Ok, so if that doesn't work, try to put the image on the button using CSS. 
Something like:


WEBOBJECT NAME=AjaxSubmitButton3/WEBOBJECT

--WOD
AjaxSubmitButton3: AjaxSubmitButton {
   updateContainerID = MyUpdateContainerID;
   elementName  = div;
   style = background: url('mybutton.gif');
   action = myAction;
}




 AjaxSubmitButton3: AjaxSubmitButton {
 updateContainerID = MyUpdateContainerID;
 elementName  = button;
 action = myAction;
 }

 Image1: WOImage {
 filename = mybutton.gif;
 }

 AjaxUpdateContainer2: AjaxUpdateContainer {
 id = MyUpdateContainerID;
 }

 The image is placed at my project's Resources/mybutton.gif

 Thanks
 venu

 On Thu, Jan 21, 2010 at 8:15 PM, Ramsey Gurley ram...@xeotech.com 
wrote:
 If you are not seeing an image it is because the WOResourceManager is 
not
 finding your image file.  On your eclipse console, you will see a log 
line

 that includes something like ERROR_FILE_NOT_FOUND. Continuing with the
 example below, you would need to make sure you have an image named
 submitImage.jpg in your project's Resources/ folder.  If you have 
the image
 anywhere else, it will not be found.  If, for example, you had your 
image in
 an Images folder in your resources folder (Resources/Images/), then 
you

 would need to include that like filename=Images/submitImage.jpg;

 Ramsey

 On Jan 21, 2010, at 8:52 AM, Venu A wrote:

 Hi,

 Thanks for giving the exact information what i want, but it is not 
working.
 The problem is the image(image which is given for WOImage) is not 
appearing

 in the UI.
 It is appearing without any image, the small empty button is 
appearing(but

 action is working fine
 when i clicked on it),what do i do for getting button with image.

 Thanks and regards,
 Venu


 On Thu, Jan 21, 2010 at 6:20 PM, Ramsey Lee Gurley rgur...@mac.com 
wrote:
 Please keep the replies on list so other's can benefit from your 
question.


 An example would be

 webobject name=SubmitButtonwebobject name=Image//webobject

 SubmitButton: AjaxSubmitButton {
  elementName = button;
  updateContainerID = someID;
 }

 Image: WOImage {
  filename = submitImage.jpg;
 }

 Or, if you prefer, you could use elementName=a or div or 
something else

 since no version of IE really handles the button element correctly.

 Ramsey

 On Jan 21, 2010, at 2:35 AM, Venu A wrote:

 Hi,
 thanks for helping, but am not getting exactly, can u post clearly 
with
 required properties for AjaxSubmitbutton and WOActiveImage. I want 
to use

 WOActiveImageButton insted of normal html button which is generated by
 AjaxSubmitButton.

 Thanks and regards,
 Venu

 On Thu, Jan 21, 2010 at 12:01 PM, Ramsey Lee Gurley 
rgur...@mac.com wrote:

 You can use a binding like

 elementName=button;

 And then wrap your image with the button.

 
http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/ajax/AjaxSubmitButton.html



 On Jan 21, 2010, at 1:22 AM, Venu A wrote:

  Hi all,
 
  When i use AjaxSubmitButton it is generated a normal html button, 
insted
  of that normal html button i want to use rich button which is 
created by

  the tool like
  submit.jpg button.How can i use the submit.jpg button with same
  AjaxSubmitButton functionality.plz help me.
 
 
  thanks and regards,
  Venu
  ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
  Help/Unsubscribe/Update your Subscription:
  
http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com

 
  This email sent to rgur...@mac.com




 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 
http://lists.apple.com/mailman/options/webobjects-dev/ramsey%40xeotech.com


 This email sent to 

Re: Release of bunch of slides from WOWODC 2011

2011-09-08 Thread Denis Frolov
Thanks, Pascal and all involved!

PS: I think it wouldn't hurt to add links to RSS feed and community
program to emails like this. Frankly, I couldn't find the RSS link on
wocommunity.org site as well.

Denis

On Wed, Sep 7, 2011 at 10:56 PM, Pascal Robert prob...@macti.ca wrote:
 Hi everyone,

 We decided to release a bunch of slides from WOWODC 2011, the first batch 
 have been released a couple of minutes ago.

 The slides that were released:

        ERRest - Designing a Good REST API
        ERRest - 2011 Edition
        Concurrency and Thread-Safe Data Processing in Background Tasks
        Deployment on BSD
        Deployment on Linode
        Ajax Under The Hood
        Customizing ERModernLook Applications

 Fire up iTunes or your favorite RSS reader to get access to the slides.  
 Remember, if you want the recordings, you have to become a member of the 
 Community Program!

 Have a good lecture,

 -- Pascal

  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/dfrolov%40demax.ru

 This email sent to dfro...@demax.ru

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


one-to-many relationship question

2011-09-08 Thread Michael Gargano
Hi all,

Quick question, does delete on cascade imply owns destination?  Also, 
does checking owns destination force the insertion of the destination objects 
after the insertion of the source entity?

I think David LeBer answered this for me once, but I forgot.

Thanks.
-Mike

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Entity Validation Exception Question

2011-09-08 Thread Michael Gargano
Hi all,

When an EO is being validated, the exception kicked back has ‘?’s in it.  I’m 
assuming this is where they are expecting us to place the appropriate article 
like (‘a’ vs. ‘an’) or something that is supposed to be pluralized.  Is there a 
good way to handle this or do I just need to do a find and replace on each of 
these messages before display?

Thanks.
-Mike


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: one-to-many relationship question

2011-09-08 Thread Paul D Yu
This is what I know.

Owns destination on a toOne relationship means every time a master record is 
created, a child record will also be created.  The primary key of the child 
will be set to the primary key of the master.

Cascade delete means when you delete the master record, the child record(s) 
will automatically be deleted as well.

Paul  
On Sep 8, 2011, at 2:59 PM, Michael Gargano wrote:

 Hi all,
 
   Quick question, does delete on cascade imply owns destination?  Also, 
 does checking owns destination force the insertion of the destination objects 
 after the insertion of the source entity?
 
 I think David LeBer answered this for me once, but I forgot.
 
 Thanks.
 -Mike
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
 
 This email sent to p...@mac.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entity Validation Exception Question

2011-09-08 Thread David Holt
D2W ERModernLook??


On 2011-09-08, at 12:00 PM, Michael Gargano wrote:

 Hi all,
 
 When an EO is being validated, the exception kicked back has ‘?’s in it.  I’m 
 assuming this is where they are expecting us to place the appropriate article 
 like (‘a’ vs. ‘an’) or something that is supposed to be pluralized.  Is there 
 a good way to handle this or do I just need to do a find and replace on each 
 of these messages before display?
 
 Thanks.
 -Mike
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entity Validation Exception Question

2011-09-08 Thread Michael Gargano
no D2W, just what I'm catching in validationFailedWithException in the component

-Mike

On Sep 8, 2011, at 3:16 PM, David Holt wrote:

D2W ERModernLook??


On 2011-09-08, at 12:00 PM, Michael Gargano wrote:

Hi all,

When an EO is being validated, the exception kicked back has ‘?’s in it.  I’m 
assuming this is where they are expecting us to place the appropriate article 
like (‘a’ vs. ‘an’) or something that is supposed to be pluralized.  Is there a 
good way to handle this or do I just need to do a find and replace on each of 
these messages before display?

Thanks.
-Mike


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  
(Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com

This email sent to programming...@mac.commailto:programming...@mac.com



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: one-to-many relationship question

2011-09-08 Thread Michael Gargano
Don't worry you're not losing me.  :)  Basically, this is what's happening

I have entity A1 with single table inheritance children A2 and A3

A1 has - B1, which is also passed on to the children

I'm creating a new A3 instance and a bunch of new B1 instances, I add 
the B1's to the A3 relationship

I go to commit A3 and it tries to commit the B1's first, which explodes 
because of the FK constraint to A3.

This isn't happening anywhere else so I'm not sure what's wrong (I'm 
hoping it's not just luck), but basically I'm asking if A1,A2,A3 own B1 is 
that the indication to EOF that B1 needs to be committed second, after a PK has 
been generated and committed on A3

Thanks.
-Mike



On Sep 8, 2011, at 3:40 PM, Philippe Rabier wrote:

 Michael, there are 2 distinct notions.
 
 Cascading delete is clear enough I guess.
 
 When an object A owns an object B, that means that B can't live  
 without A. The consequence is when you remove the relationship between  
 A and B, B will be deleted automatically (think about invoice and  
 invoice items).
 
 Sorry, I don't understand the second question. Basically, when you  
 create A, you must create B and link B to A as usual.
 
 I don't want to lose you but there is another case: if you have a to- 
 one between Entity A and Entity B, if EA owns EB and you check  
 propagate primary key, object B will be automatically created when  
 you create object A. That's not your question but just in case…
 
 Bests,
 
 Philippe
 
 On 8 sept. 11, at 20:59, Michael Gargano wrote:
 
 Hi all,
 
  Quick question, does delete on cascade imply owns destination?   
 Also, does checking owns destination force the insertion of the  
 destination objects after the insertion of the source entity?
 
 I think David LeBer answered this for me once, but I forgot.
 
 Thanks.
 -Mike
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/prabier%40me.com
 
 This email sent to prab...@me.com
 
 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Entity Validation Exception Question

2011-09-08 Thread Ramsey Gurley
Hi Mike,

ERXValidationFactory.ExceptionDelegateInterface
ERXValidationFactory.setDefaultDelegate

If your exception doesn't have a context (not using d2w, not setting it 
yourself when the exception is caught, etc) then you can override the delegate 
to provide a context.

Ramsey

On Sep 8, 2011, at 12:30 PM, Michael Gargano wrote:

 no D2W, just what I'm catching in validationFailedWithException in the 
 component
 
 -Mike
 
 On Sep 8, 2011, at 3:16 PM, David Holt wrote:
 
 D2W ERModernLook??
 
 
 On 2011-09-08, at 12:00 PM, Michael Gargano wrote:
 
 Hi all,
 
 When an EO is being validated, the exception kicked back has ‘?’s in it.  
 I’m assuming this is where they are expecting us to place the appropriate 
 article like (‘a’ vs. ‘an’) or something that is supposed to be pluralized. 
  Is there a good way to handle this or do I just need to do a find and 
 replace on each of these messages before display?
 
 Thanks.
 -Mike
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: one-to-many relationship question

2011-09-08 Thread Ramsey Gurley
Hi Mike,

That's a different question/answer entirely (^_^)

You need to order your adaptor operations if your database can not do deferred 
foreign key constraints.  You can do order your ops with a property:

com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate.active=true

Keep in mind this cannot solve unsolvable problems like required circular 
relationships.  To fix that requires a new choice in databases.

For information regarding your model, I find the most complete resource is 
still Apple's old EOModeler docs.

http://developer.apple.com/legacy/mac/library/#documentation/WebObjects/UsingEOModeler/Introduction/Introduction.html

It's worth pointing out that if you did model this as horizontal instead of 
single table, you'd have FK constraint problems of a different sort.  More info 
in the gotchas under the description of HI here:

http://wiki.objectstyle.org/confluence/display/WO/Modeling+Inheritance+with+Entity+Modeler

Ramsey

On Sep 8, 2011, at 12:58 PM, Michael Gargano wrote:

 Don't worry you're not losing me.  :)  Basically, this is what's happening
 
   I have entity A1 with single table inheritance children A2 and A3
 
   A1 has - B1, which is also passed on to the children
 
   I'm creating a new A3 instance and a bunch of new B1 instances, I add 
 the B1's to the A3 relationship
 
   I go to commit A3 and it tries to commit the B1's first, which explodes 
 because of the FK constraint to A3.
 
   This isn't happening anywhere else so I'm not sure what's wrong (I'm 
 hoping it's not just luck), but basically I'm asking if A1,A2,A3 own B1 is 
 that the indication to EOF that B1 needs to be committed second, after a PK 
 has been generated and committed on A3
 
 Thanks.
 -Mike
 
 
 
 On Sep 8, 2011, at 3:40 PM, Philippe Rabier wrote:
 
 Michael, there are 2 distinct notions.
 
 Cascading delete is clear enough I guess.
 
 When an object A owns an object B, that means that B can't live  
 without A. The consequence is when you remove the relationship between  
 A and B, B will be deleted automatically (think about invoice and  
 invoice items).
 
 Sorry, I don't understand the second question. Basically, when you  
 create A, you must create B and link B to A as usual.
 
 I don't want to lose you but there is another case: if you have a to- 
 one between Entity A and Entity B, if EA owns EB and you check  
 propagate primary key, object B will be automatically created when  
 you create object A. That's not your question but just in case…
 
 Bests,
 
 Philippe
 
 On 8 sept. 11, at 20:59, Michael Gargano wrote:
 
 Hi all,
 
 Quick question, does delete on cascade imply owns destination?   
 Also, does checking owns destination force the insertion of the  
 destination objects after the insertion of the source entity?
 
 I think David LeBer answered this for me once, but I forgot.
 
 Thanks.
 -Mike
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/prabier%40me.com
 
 This email sent to prab...@me.com
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: one-to-many relationship question

2011-09-08 Thread Michael Gargano
Hi Ramsey,

Thanks!  It was the deferred assignment.  I had added those FKs myself 
(aka not using migration), I didn't realize that deferment was how assignment 
order was being guaranteed (or not guaranteed for that matter).

Thanks again.
-Mike

On Sep 8, 2011, at 4:18 PM, Ramsey Gurley wrote:

 Hi Mike,
 
 That's a different question/answer entirely (^_^)
 
 You need to order your adaptor operations if your database can not do 
 deferred foreign key constraints.  You can do order your ops with a property:
 
 com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate.active=true
 
 Keep in mind this cannot solve unsolvable problems like required circular 
 relationships.  To fix that requires a new choice in databases.
 
 For information regarding your model, I find the most complete resource is 
 still Apple's old EOModeler docs.
 
 http://developer.apple.com/legacy/mac/library/#documentation/WebObjects/UsingEOModeler/Introduction/Introduction.html
 
 It's worth pointing out that if you did model this as horizontal instead of 
 single table, you'd have FK constraint problems of a different sort.  More 
 info in the gotchas under the description of HI here:
 
 http://wiki.objectstyle.org/confluence/display/WO/Modeling+Inheritance+with+Entity+Modeler
 
 Ramsey
 
 On Sep 8, 2011, at 12:58 PM, Michael Gargano wrote:
 
 Don't worry you're not losing me.  :)  Basically, this is what's 
 happening
 
  I have entity A1 with single table inheritance children A2 and A3
 
  A1 has - B1, which is also passed on to the children
 
  I'm creating a new A3 instance and a bunch of new B1 instances, I add 
 the B1's to the A3 relationship
 
  I go to commit A3 and it tries to commit the B1's first, which explodes 
 because of the FK constraint to A3.
 
  This isn't happening anywhere else so I'm not sure what's wrong (I'm 
 hoping it's not just luck), but basically I'm asking if A1,A2,A3 own B1 is 
 that the indication to EOF that B1 needs to be committed second, after a PK 
 has been generated and committed on A3
 
 Thanks.
 -Mike
 
 
 
 On Sep 8, 2011, at 3:40 PM, Philippe Rabier wrote:
 
 Michael, there are 2 distinct notions.
 
 Cascading delete is clear enough I guess.
 
 When an object A owns an object B, that means that B can't live  
 without A. The consequence is when you remove the relationship between  
 A and B, B will be deleted automatically (think about invoice and  
 invoice items).
 
 Sorry, I don't understand the second question. Basically, when you  
 create A, you must create B and link B to A as usual.
 
 I don't want to lose you but there is another case: if you have a to- 
 one between Entity A and Entity B, if EA owns EB and you check  
 propagate primary key, object B will be automatically created when  
 you create object A. That's not your question but just in case…
 
 Bests,
 
 Philippe
 
 On 8 sept. 11, at 20:59, Michael Gargano wrote:
 
 Hi all,
 
Quick question, does delete on cascade imply owns destination?   
 Also, does checking owns destination force the insertion of the  
 destination objects after the insertion of the source entity?
 
 I think David LeBer answered this for me once, but I forgot.
 
 Thanks.
 -Mike
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/prabier%40me.com
 
 This email sent to prab...@me.com
 
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com
 
 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: one-to-many relationship question

2011-09-08 Thread Cheong Hee (Gmail)

This is what being described in the documentation:

Owns Destination

You can set a source object as owning its destination objects. When a

source object owns its destination objects and you remove a destination

object from the source object's relationship array, you're also deleting it

from the database (alternatively, you can transfer it to a new owner). This

is because ownership implies that the owned object can't exist without an

owner-for example, line items can't exist outside of a purchase order.



By contrast, you might have a department object that doesn't own its

employee objects. If you remove an employee from a department's

employees array, the employee continues to exist in the database, but

its department variable is set to null (or nil in Objective-C). If you 
really


intend to delete the employee from the database, you'd have to do it

explicitly.



From what it said, I think it is quite clear that the destination object 
will only be removed from database if owns destination is set in source 
object. Else you will have to do it explicitely from the code.


Whereas cascade delete will remove from top-down.  Delete source object will 
delete the destination objects altogether.


Cheers

Cheong Hee

- Original Message - 
From: Paul D Yu p...@mac.com

To: Michael Gargano mgarg...@escholar.com
Cc: WebObjects webobjects-dev webobjects-dev@lists.apple.com
Sent: Friday, September 09, 2011 3:03 AM
Subject: Re: one-to-many relationship question



This is what I know.

Owns destination on a toOne relationship means every time a master record 
is created, a child record will also be created.  The primary key of the 
child will be set to the primary key of the master.


Cascade delete means when you delete the master record, the child 
record(s) will automatically be deleted as well.


Paul
On Sep 8, 2011, at 2:59 PM, Michael Gargano wrote:


Hi all,

Quick question, does delete on cascade imply owns destination?  Also, 
does checking owns destination force the insertion of the destination 
objects after the insertion of the source entity?


I think David LeBer answered this for me once, but I forgot.

Thanks.
-Mike

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com

This email sent to p...@mac.com


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com

This email sent to chn...@gmail.com 


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com