db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hidde Boonstra [Us Media]" <hidde.boons...@usmedia.nl>
Subject Re: Antwort: Correct way to getRelatedObjects with each relatedObject reference to this object?
Date Thu, 12 Feb 2009 10:01:25 GMT
Hi Thomas,

as an user / programmer I would expect parent.getChildren().getParent() to return the original
parent object. Thus I would agree that it feels natural to set the parent of the children
upon retrieval of those children.

Regards,

Hidde.

----- "Thomas Fischer" <fischer@seitenbau.net> wrote:

> The only way to achieve this in general would be modifying the
> object.vm template which generatates the get${relCol} method.
> 
> I would believe that the behaviour you describe would make sense 
> generally. Any opinions on that from other people ? By doing this one
> would increase coupling between objects.
> 
>    Thomas

-- 
Hidde Boonstra
Us Media B.V.
Stadhouderskade 115
1073 AX Amsterdam

t: 020 428 68 68
f: 020 470 69 05
www.usmedia.nl

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message