| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
public void setPerson(edu.uow.ris.framework.eo.Person aValue) {if( aValue == null ) {edu.uow.ris.framework.eo.Person object = person();if( object != null )removeObjectFromBothSidesOfRelationshipWithKey( object, "person" );} elseaddObjectToBothSidesOfRelationshipWithKey( aValue, "person" );} In detail, you want to tweak your templates to look more like this: public void setPerson(edu.uow.ris.framework.eo.Person value) { takeStoredValueForKey(value, "person"); } public void setPersonRelationship(edu.uow.ris.framework.eo.Person aValue) { if( aValue == null ) { edu.uow.ris.framework.eo.Person object = person(); if( object != null ) removeObjectFromBothSidesOfRelationshipWithKey( object, "person" ); } else addObjectToBothSidesOfRelationshipWithKey( aValue, "person" ); } so setPerson() sets one side, setPersonRelationship() sets both sides. Pierce |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden This email sent to email@hidden
| References: | |
| >Java Packages for Dummies (From: Owen McKerrow <email@hidden>) | |
| >Re: Java Packages for Dummies (From: Chuck Hill <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.