If I'm not using hibernate.properties (well, for Junit tests I am), but rather hibernate.cfg.xml - can I add this property there?
I'm trying to get both ids and names so I can create a LabelValueBean for rendering in a drop-down list on the UI. A LabelValueBean is a class w/in Struts, but now that I think of it, I might just be able to use my object with the <html:options> tag. Thanks, Matt > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of One Ovthafew > Sent: Friday, January 03, 2003 6:05 PM > To: [EMAIL PROTECTED] > Subject: 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 list of names, rather than objects > sorted by name; you might want to try: > > Query q = ses.createQuery( > "select m.name from m in class MSO where m.id in (:id_list) > order by upper(m.name)" ); q.setParameterList("id_list", > msoIds); List nameList = q.list(); > > > --------------------------------------------------------------------- > NEW to mBox, receive faxes to any email address! > Find out more http://www.mbox.com.au/fax > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > hibernate-devel mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hibernate-devel > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel