Re: Setting addOrderByAscending() with foreign attribute

2004-05-10 Thread Jakob Braeuchi
hi, first you have to have a relationship defined between classes of table a and classes of table b. then you you can use addOrderByAscending(relAtoB.name) where relAtoB is the name of the relationship. hth jakob [EMAIL PROTECTED] wrote: Hi all, I'd like to sort the result set based on a field

Re: Setting addOrderByAscending() with foreign attribute

2004-05-10 Thread Daehyun Yoon
Thanks Daniel, Origianlly I didn't want use referece-descriptor, but it has become apparent that I'd need it. I appreciate your help! Sincerely, Daehyun Daniel Perry wrote: addOrderByAscending(b.name); Make sure you use capitalisation as per your repository.xml - normally why things dont work

Re: Setting addOrderByAscending() with foreign attribute

2004-05-10 Thread Daehyun Yoon
Dear Jakob, Origianlly I didn't want use referece-descriptor, but it has become apparent that I'd need it. I appreciate your help! Sincerely, Daehyun Jakob Braeuchi wrote: hi, first you have to have a relationship defined between classes of table a and classes of table b. then you you can

RE: Setting addOrderByAscending() with foreign attribute

2004-05-10 Thread Daniel Perry
addOrderByAscending(b.name); Make sure you use capitalisation as per your repository.xml - normally why things dont work for me on first try! Daniel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 10 May 2004 10:23 To: [EMAIL PROTECTED] Subject: Setting