Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:3.0[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:postgresql 8.0[/b]
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
Hi, am using hibernate with postgresql database. When I do a simple query such as "select * from User u order by u.name", I don't get an orderd result set. When I see the sql generate by hibernate it does put the 'order by' clause in the select statement, but my results are not ordered. I copy and paste the generated sql from hibernate in my postgresql db, I got an ordered results. Is there a problem with hibernate and postgres with 'order by' clause. I would also like to know if the problem occurs before Hib. sends the select statement to the db or after it has been executed in postgres and then Hib. fails to display the results in order.
thanks in advance[/b]