File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Why isn't query ordering? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Why isn Watch "Why isn New topic

Why isn't query ordering?

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436

I'm using Hibernate 3.3.2.GA. I'm trying to write a simple query to return all the items from my table, ordered alphabetically by the "name" column. So I'm trying the below ...

But the items are not appearing ordered by name. Below is the code for the model class. Any ideas? - Dave

I agree. Here's the link:
subject: Why isn't query ordering?
It's not a secret anymore!