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
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
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
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
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
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
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