db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alvaro Coronel <alvarocorone...@yahoo.com>
Subject Re: Correct way to getRelatedObjects with each relatedObject reference to this object?
Date Sat, 14 Feb 2009 23:37:13 GMT
One way of getting rid of temptations is yielding.

Afterwards you just run the unit tests and tell us how they turned out :)

Best regards,
Álvaro.




________________________________
From: Brendan Miller <bmiller@dotster.com>
To: Apache Torque Users List <torque-user@db.apache.org>
Sent: Friday, February 13, 2009 7:57:11 PM
Subject: Re: Correct way to getRelatedObjects with each relatedObject reference to this object?

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 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 the related PurchaseOrder.
> 
> Bye, Thomas.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 

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


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message