RE: [Hibernate] Getting a sorted list of results

2003-01-04 Thread Matt Raible
ubject: Re: [Hibernate] Getting a sorted list of results > > > Add > > hibernate.query.imports=com.comcast.cable.dmc.itd.cct.persistence > > to hibernate.properties > > > P.S. Something earlier gave me the impression you were really > only trying to get back a

Re: [Hibernate] Getting a sorted list of results

2003-01-04 Thread One Ovthafew
Add hibernate.query.imports=com.comcast.cable.dmc.itd.cct.persistence to hibernate.properties P.S. Something earlier gave me the impression you were really only trying to get back a list of names, rather than objects sorted by name; you might want to try: Query q = ses.createQuery( "select m

RE: [Hibernate] Getting a sorted list of results

2003-01-04 Thread Raible, Matt
ay to do it. Thanks, Matt -Original Message- From: Raible, Matt Sent: Friday, January 03, 2003 1:07 PM To: '[EMAIL PROTECTED]' Subject: RE: [Hibernate] Getting a sorted list of results And so it begins - I eliminated about 100 lines of code by passing in a List

RE: [Hibernate] Getting a sorted list of results

2003-01-03 Thread Raible, Matt
And so it begins - I eliminated about 100 lines of code by passing in a List of longs, vs. a List of objects with their id's set. Thank you from the bottom of my heart ;) Matt - Forwarded message - > This *looks* to be exactly what I'm looking for, however, I'm getting an

RE: [Hibernate] Getting a sorted list of results

2003-01-03 Thread Raible, Matt
s might not be very good if the id List is very long... > -Original Message- > From: Raible, Matt [mailto:[EMAIL PROTECTED] > Sent: Friday, 3 January 2003 11:33 AM > To: '[EMAIL PROTECTED]' > Subject: [Hibernate] Getting a sorted list of results > > > I am u

RE: [Hibernate] Getting a sorted list of results

2003-01-03 Thread Gavin King
nal Message- > From: Raible, Matt [mailto:[EMAIL PROTECTED] > Sent: Friday, 3 January 2003 11:33 AM > To: '[EMAIL PROTECTED]' > Subject: [Hibernate] Getting a sorted list of results > > > I am using the following method to get back a list of objects > b

[Hibernate] Getting a sorted list of results

2003-01-03 Thread Raible, Matt
I am using the following method to get back a list of objects based on ids. What I would prefer is to get back a list of objects sorted by object.name. I know there's an easier way to do this with hibernate, but I can't seem to find it. // loop through the list of headend ids and get t