Re: Correct way to getRelatedObjects with each relatedObject reference to this object?

2009-02-13 Thread Thomas Vandahl
Brendan Miller wrote: Is there a way I can pre-populate the Items' aPurchaseOrder to the object I start with (po)? This will not provide you with the same instance, but your PurchaseOrder should have a method called getItemsJoinPurchaseOrder() (or similar) which will populate your items with

Re: Antwort: Correct way to getRelatedObjects with each relatedObject reference to this object?

2009-02-13 Thread Thomas Vandahl
Thomas Fischer 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

Re: Correct way to getRelatedObjects with each relatedObject reference to this object?

2009-02-13 Thread Brendan Miller
Thanks for the comments/interest. In the interim, I'm tempted to add public List#if($enableJava5Features)$className#end get${relCol}JoinThis() to Object.vm... Brendan I'm tempted On Fri, Feb 13, 2009 at 05:55:19PM +0100, Thomas Vandahl wrote: Brendan Miller wrote: Is there a way I can